summaryrefslogtreecommitdiffstats
path: root/examples/caldavresource/caldavresource.cpp
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-05-01 09:46:32 +0200
committerMinijackson <minijackson@riseup.net>2018-05-01 09:46:32 +0200
commit99d3aa498ed76a9b351a3ca3b59669e2f33a661d (patch)
tree8a727b0c6b9869969b987fa66de8b69b39337a53 /examples/caldavresource/caldavresource.cpp
parent235806ecf48b91d7bf11f9f2f1e9529403583680 (diff)
downloadsink-99d3aa498ed76a9b351a3ca3b59669e2f33a661d.tar.gz
sink-99d3aa498ed76a9b351a3ca3b59669e2f33a661d.zip
Remove useless commant + return empty ID on event removal
Diffstat (limited to 'examples/caldavresource/caldavresource.cpp')
-rw-r--r--examples/caldavresource/caldavresource.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/caldavresource/caldavresource.cpp b/examples/caldavresource/caldavresource.cpp
index 900681d..d9f8c69 100644
--- a/examples/caldavresource/caldavresource.cpp
+++ b/examples/caldavresource/caldavresource.cpp
@@ -113,8 +113,6 @@ protected:
113 { 113 {
114 SinkLog() << "Replaying event"; 114 SinkLog() << "Replaying event";
115 115
116 //auto incidence = KCalCore::ICalFormat().readIncidence(rawIcal);
117
118 KDAV2::DavItem item; 116 KDAV2::DavItem item;
119 117
120 switch (operation) { 118 switch (operation) {
@@ -138,7 +136,7 @@ protected:
138 item.setUrl(urlOf(oldRemoteId)); 136 item.setUrl(urlOf(oldRemoteId));
139 137
140 SinkLog() << "Removing event:" << oldRemoteId; 138 SinkLog() << "Removing event:" << oldRemoteId;
141 return removeItem(item).then([oldRemoteId] { return oldRemoteId; }); 139 return removeItem(item).then([] { return QByteArray{}; });
142 } 140 }
143 case Sink::Operation_Modification: 141 case Sink::Operation_Modification:
144 auto rawIcal = event.getIcal(); 142 auto rawIcal = event.getIcal();