From 4ee8a44bf4dda625b4d2f58f127869557c1af959 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 10 Feb 2016 08:25:42 +0100 Subject: Removed removeFromDisk --- common/clientapi.cpp | 5 ----- common/clientapi.h | 5 ----- sinksh/syntax_modules/sink_clear.cpp | 2 +- 3 files changed, 1 insertion(+), 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 Resources::start(const QByteArray &identifier) }); } -void Store::removeFromDisk(const QByteArray &identifier) -{ - removeDataFromDisk(identifier).exec().waitForFinished(); -} - KAsync::Job Store::removeDataFromDisk(const QByteArray &identifier) { //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 @@ -93,11 +93,6 @@ KAsync::Job SINK_EXPORT remove(const DomainType &domainObject); */ KAsync::Job SINK_EXPORT synchronize(const Sink::Query &query); -/** - * Removes a resource from disk. - */ -void SINK_EXPORT removeFromDisk(const QByteArray &resourceIdentifier); - /** * Removes all resource data from disk. * 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) { for (const auto &resource : args) { state.print(QObject::tr("Removing local cache for '%1' ...").arg(resource)); - Sink::Store::removeFromDisk(resource.toLatin1()); + Sink::Store::removeDataFromDisk(resource.toLatin1()).exec().waitForFinished(); state.printLine(QObject::tr("done")); } -- cgit v1.2.3