summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/clientapi.cpp5
-rw-r--r--common/clientapi.h5
-rw-r--r--sinksh/syntax_modules/sink_clear.cpp2
3 files changed, 1 insertions, 11 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp
index b7dfb86..f67606e 100644
--- a/common/clientapi.cpp
+++ b/common/clientapi.cpp
@@ -190,11 +190,6 @@ KAsync::Job<void> Resources::start(const QByteArray &identifier)
190 }); 190 });
191} 191}
192 192
193void Store::removeFromDisk(const QByteArray &identifier)
194{
195 removeDataFromDisk(identifier).exec().waitForFinished();
196}
197
198KAsync::Job<void> Store::removeDataFromDisk(const QByteArray &identifier) 193KAsync::Job<void> Store::removeDataFromDisk(const QByteArray &identifier)
199{ 194{
200 //All databases are going to become invalid, nuke the environments 195 //All databases are going to become invalid, nuke the environments
diff --git a/common/clientapi.h b/common/clientapi.h
index 2c759f8..fb44ca2 100644
--- a/common/clientapi.h
+++ b/common/clientapi.h
@@ -94,11 +94,6 @@ KAsync::Job<void> SINK_EXPORT remove(const DomainType &domainObject);
94KAsync::Job<void> SINK_EXPORT synchronize(const Sink::Query &query); 94KAsync::Job<void> SINK_EXPORT synchronize(const Sink::Query &query);
95 95
96/** 96/**
97 * Removes a resource from disk.
98 */
99void SINK_EXPORT removeFromDisk(const QByteArray &resourceIdentifier);
100
101/**
102 * Removes all resource data from disk. 97 * Removes all resource data from disk.
103 * 98 *
104 * This will not touch the configuration. All commands that that arrived at the resource before this command will be dropped. All commands that arrived later will be executed. 99 * This will not touch the configuration. All commands that that arrived at the resource before this command will be dropped. All commands that arrived later will be executed.
diff --git a/sinksh/syntax_modules/sink_clear.cpp b/sinksh/syntax_modules/sink_clear.cpp
index d02c638..72d9a14 100644
--- a/sinksh/syntax_modules/sink_clear.cpp
+++ b/sinksh/syntax_modules/sink_clear.cpp
@@ -41,7 +41,7 @@ bool clear(const QStringList &args, State &state)
41{ 41{
42 for (const auto &resource : args) { 42 for (const auto &resource : args) {
43 state.print(QObject::tr("Removing local cache for '%1' ...").arg(resource)); 43 state.print(QObject::tr("Removing local cache for '%1' ...").arg(resource));
44 Sink::Store::removeFromDisk(resource.toLatin1()); 44 Sink::Store::removeDataFromDisk(resource.toLatin1()).exec().waitForFinished();
45 state.printLine(QObject::tr("done")); 45 state.printLine(QObject::tr("done"));
46 } 46 }
47 47