summary refs log tree commit diff
path: root/include/Cache.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-22 19:03:55 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-22 19:03:55 +0300
commitc0e55378c31321e2ab7a117cefb3bd63a609e474 (patch)
treeef6f08864d713a4fc6dc49b24018156abfdec048 /include/Cache.h
parentRemove cache updates from the main thread (diff)
downloadnheko-c0e55378c31321e2ab7a117cefb3bd63a609e474.tar.xz
Remove extra inline keywords
Diffstat (limited to 'include/Cache.h')
-rw-r--r--include/Cache.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/include/Cache.h b/include/Cache.h

index 3a98fddc..69d880f5 100644 --- a/include/Cache.h +++ b/include/Cache.h
@@ -33,8 +33,8 @@ public: QString nextBatchToken() const; QMap<QString, RoomState> states(); - inline void deleteData(); - inline void unmount(); + void deleteData(); + void unmount() { isMounted_ = false; }; void removeRoom(const QString &roomid); void setup(); @@ -52,18 +52,3 @@ private: QString userId_; QString cacheDirectory_; }; - -inline void -Cache::unmount() -{ - isMounted_ = false; -} - -inline void -Cache::deleteData() -{ - qInfo() << "Deleting cache data"; - - if (!cacheDirectory_.isEmpty()) - QDir(cacheDirectory_).removeRecursively(); -}