summary refs log tree commit diff
path: root/src/Cache.cc
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 /src/Cache.cc
parentRemove cache updates from the main thread (diff)
downloadnheko-c0e55378c31321e2ab7a117cefb3bd63a609e474.tar.xz
Remove extra inline keywords
Diffstat (limited to 'src/Cache.cc')
-rw-r--r--src/Cache.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Cache.cc b/src/Cache.cc

index 010b4aa9..befb3a0a 100644 --- a/src/Cache.cc +++ b/src/Cache.cc
@@ -272,3 +272,12 @@ Cache::nextBatchToken() const return QString::fromUtf8(token.data(), token.size()); } + +void +Cache::deleteData() +{ + qInfo() << "Deleting cache data"; + + if (!cacheDirectory_.isEmpty()) + QDir(cacheDirectory_).removeRecursively(); +}