summaryrefslogtreecommitdiffstats
path: root/akonadish/syntax_modules/akonadi_remove.cpp
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2015-12-25 19:55:25 +0100
committerAaron Seigo <aseigo@kde.org>2015-12-25 19:55:25 +0100
commit8648ce60eda891404231d7e484de5c2a2a3efd35 (patch)
tree5c96a4605975d52d7f023a86b2ce6a43b6d30088 /akonadish/syntax_modules/akonadi_remove.cpp
parent6517af4a8cb6223893ddf805ae5193f715d661a6 (diff)
downloadsink-8648ce60eda891404231d7e484de5c2a2a3efd35.tar.gz
sink-8648ce60eda891404231d7e484de5c2a2a3efd35.zip
unneeded
Diffstat (limited to 'akonadish/syntax_modules/akonadi_remove.cpp')
-rw-r--r--akonadish/syntax_modules/akonadi_remove.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/akonadish/syntax_modules/akonadi_remove.cpp b/akonadish/syntax_modules/akonadi_remove.cpp
index f58fa7d..01e4ead 100644
--- a/akonadish/syntax_modules/akonadi_remove.cpp
+++ b/akonadish/syntax_modules/akonadi_remove.cpp
@@ -50,11 +50,6 @@ bool resource(const QStringList &args, State &state)
50 auto resourceId = args.at(0); 50 auto resourceId = args.at(0);
51 Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr object = store.getObject("", resourceId.toLatin1()); 51 Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr object = store.getObject("", resourceId.toLatin1());
52 52
53 auto map = AkonadishUtils::keyValueMapFromArgs(args);
54 for (auto i = map.begin(); i != map.end(); ++i) {
55 object->setProperty(i.key().toLatin1(), i.value());
56 }
57
58 auto result = store.remove(*object).exec(); 53 auto result = store.remove(*object).exec();
59 result.waitForFinished(); 54 result.waitForFinished();
60 if (result.errorCode()) { 55 if (result.errorCode()) {