diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-04-15 10:40:31 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-04-15 10:40:31 -0500 |
commit | 61be4cf3e7aa796dd61ea8295ef6c6dbbe600a4a (patch) | |
tree | 28f431d370e9ff2484ec6cc37938ee065e98f2c5 | |
parent | 0a097229d2ae182f30f657738b41f6bddc6a2c8c (diff) | |
download | ayatana-indicator-datetime-61be4cf3e7aa796dd61ea8295ef6c6dbbe600a4a.tar.gz ayatana-indicator-datetime-61be4cf3e7aa796dd61ea8295ef6c6dbbe600a4a.tar.bz2 ayatana-indicator-datetime-61be4cf3e7aa796dd61ea8295ef6c6dbbe600a4a.zip |
remove unused field Appointment.is_daily
-rw-r--r-- | include/datetime/appointment.h | 1 | ||||
-rw-r--r-- | src/engine-eds.cpp | 14 | ||||
-rw-r--r-- | tests/manual-test-snap.cpp | 1 |
3 files changed, 0 insertions, 16 deletions
diff --git a/include/datetime/appointment.h b/include/datetime/appointment.h index 441aae1..4778293 100644 --- a/include/datetime/appointment.h +++ b/include/datetime/appointment.h @@ -39,7 +39,6 @@ public: std::string summary; std::string url; std::string uid; - bool is_daily = false; bool has_alarms = false; DateTime begin; DateTime end; diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp index 4b5a1b9..5b67001 100644 --- a/src/engine-eds.cpp +++ b/src/engine-eds.cpp @@ -432,20 +432,6 @@ private: { Appointment appointment; - /* Determine whether this is a recurring event. - NB: icalrecurrencetype supports complex recurrence patterns; - however, since design only allows daily recurrence, - that's all we support here. */ - GSList * recur_list; - e_cal_component_get_rrule_list(component, &recur_list); - for (auto l=recur_list; l!=nullptr; l=l->next) - { - const auto recur = static_cast<struct icalrecurrencetype*>(l->data); - appointment.is_daily |= ((recur->freq == ICAL_DAILY_RECURRENCE) - && (recur->interval == 1)); - } - e_cal_component_free_recur_list(recur_list); - ECalComponentText text; text.value = nullptr; e_cal_component_get_summary(component, &text); diff --git a/tests/manual-test-snap.cpp b/tests/manual-test-snap.cpp index 23d607f..16e606a 100644 --- a/tests/manual-test-snap.cpp +++ b/tests/manual-test-snap.cpp @@ -36,7 +36,6 @@ int main() a.summary = "Alarm"; a.url = "alarm:///hello-world"; a.uid = "D4B57D50247291478ED31DED17FF0A9838DED402"; - a.is_daily = false; a.has_alarms = true; auto begin = g_date_time_new_local(2014,12,25,0,0,0); auto end = g_date_time_add_full(begin,0,0,1,0,0,-1); |