summaryrefslogtreecommitdiffstats
path: root/akonadish/syntax_modules/akonadi_remove.cpp
diff options
context:
space:
mode:
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()) {