aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-04-15 09:50:07 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-04-15 09:50:07 -0500
commit0a097229d2ae182f30f657738b41f6bddc6a2c8c (patch)
treed3fc6f208ceadb378babe3a15055a46f4d813a2a
parent0b6ccb4966df230661ee6802bdcae0e884b61b6a (diff)
downloadayatana-indicator-datetime-0a097229d2ae182f30f657738b41f6bddc6a2c8c.tar.gz
ayatana-indicator-datetime-0a097229d2ae182f30f657738b41f6bddc6a2c8c.tar.bz2
ayatana-indicator-datetime-0a097229d2ae182f30f657738b41f6bddc6a2c8c.zip
remove unused field Appointment.is_event
-rw-r--r--include/datetime/appointment.h1
-rw-r--r--src/appointment.cpp1
-rw-r--r--src/engine-eds.cpp1
-rw-r--r--tests/manual-test-snap.cpp1
4 files changed, 0 insertions, 4 deletions
diff --git a/include/datetime/appointment.h b/include/datetime/appointment.h
index a5283c9..441aae1 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_event = false;
bool is_daily = false;
bool has_alarms = false;
DateTime begin;
diff --git a/src/appointment.cpp b/src/appointment.cpp
index 6e742c3..98cc062 100644
--- a/src/appointment.cpp
+++ b/src/appointment.cpp
@@ -33,7 +33,6 @@ bool Appointment::operator==(const Appointment& that) const
&& (summary==that.summary)
&& (url==that.url)
&& (uid==that.uid)
- && (is_event==that.is_event)
&& (has_alarms==that.has_alarms)
&& (begin==that.begin)
&& (end==that.end);
diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp
index 5e2484e..4b5a1b9 100644
--- a/src/engine-eds.cpp
+++ b/src/engine-eds.cpp
@@ -455,7 +455,6 @@ private:
appointment.begin = DateTime(begin);
appointment.end = DateTime(end);
appointment.color = subtask->color;
- appointment.is_event = vtype == E_CAL_COMPONENT_EVENT;
appointment.uid = uid;
GList * alarm_uids = e_cal_component_get_alarm_uids(component);
diff --git a/tests/manual-test-snap.cpp b/tests/manual-test-snap.cpp
index 51556cd..23d607f 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_event = false;
a.is_daily = false;
a.has_alarms = true;
auto begin = g_date_time_new_local(2014,12,25,0,0,0);