From ebed87ea5730f9a49d6cf6d03a2a3a8ef7e2aa52 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 8 May 2018 20:30:09 +0300 Subject: Don't use shared pointers for cache --- include/AvatarProvider.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'include/AvatarProvider.h') diff --git a/include/AvatarProvider.h b/include/AvatarProvider.h index af13a577..ce82f2aa 100644 --- a/include/AvatarProvider.h +++ b/include/AvatarProvider.h @@ -17,27 +17,18 @@ #pragma once -#include #include -#include #include -class TimelineItem; -class Cache; - class AvatarProvider : public QObject { Q_OBJECT public: - static void init(QSharedPointer cache) { cache_ = cache; } //! The callback is called with the downloaded avatar for the given user //! or the avatar is downloaded first and then saved for re-use. static void resolve(const QString &room_id, const QString &userId, QObject *receiver, std::function callback); - -private: - static QSharedPointer cache_; }; -- cgit 1.5.1