diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-03 13:45:25 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-03 13:45:25 -0600 |
commit | ad84560f1707955a11fd77f55716ea3f7a4f358c (patch) | |
tree | 6b916d1b70286e672eadc914faec774f930e1dfe | |
parent | a7ffebd9859ded9e44ec6a5b5dca9fb771eac209 (diff) | |
download | ayatana-indicator-datetime-ad84560f1707955a11fd77f55716ea3f7a4f358c.tar.gz ayatana-indicator-datetime-ad84560f1707955a11fd77f55716ea3f7a4f358c.tar.bz2 ayatana-indicator-datetime-ad84560f1707955a11fd77f55716ea3f7a4f358c.zip |
remove unused code in populate_appointment_instances().
It looks like the local variables 'datetime', 'appointment_zone', and 'current_zone' were used in earlier revisions of the code, but this was removed in <http://bazaar.launchpad.net/~indicator-applet-developers/indicator-datetime/trunk.0.4/revision/57>. They're currently leftover code, and removing them should fix Bug #943746.
-rw-r--r-- | src/datetime-service.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 44fffdc..72f3d51 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -640,25 +640,7 @@ populate_appointment_instances (ECalComponent *comp, if (status == ICAL_STATUS_COMPLETED || status == ICAL_STATUS_CANCELLED) return FALSE; g_object_ref(comp); - - ECalComponentDateTime datetime; - icaltimezone *appointment_zone = NULL; - icaltimezone *current_zone = NULL; - - if (vtype == E_CAL_COMPONENT_EVENT) - e_cal_component_get_dtstart (comp, &datetime); - else - e_cal_component_get_due (comp, &datetime); - appointment_zone = icaltimezone_get_builtin_timezone_from_tzid(datetime.tzid); - current_zone = icaltimezone_get_builtin_timezone_from_tzid(current_timezone); - if (!appointment_zone || datetime.value->is_date) { // If it's today put in the current timezone? - appointment_zone = current_zone; - } - - // TODO: Convert the timezone into a 3 letter abbreviation if it's different to current_timezone - // TODO: Add the appointment timezone to the list if it's not already there. - struct comp_instance *ci; ci = g_new (struct comp_instance, 1); |