diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-05 15:06:24 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-05 15:06:24 -0600 |
commit | cf0bf58d243dcecd3cbb16d2681f3d5172e49ab4 (patch) | |
tree | 6b916d1b70286e672eadc914faec774f930e1dfe | |
parent | a7ffebd9859ded9e44ec6a5b5dca9fb771eac209 (diff) | |
parent | ad84560f1707955a11fd77f55716ea3f7a4f358c (diff) | |
download | ayatana-indicator-datetime-cf0bf58d243dcecd3cbb16d2681f3d5172e49ab4.tar.gz ayatana-indicator-datetime-cf0bf58d243dcecd3cbb16d2681f3d5172e49ab4.tar.bz2 ayatana-indicator-datetime-cf0bf58d243dcecd3cbb16d2681f3d5172e49ab4.zip |
merge lp:~charlesk/indicator-datetime/lp-943746 to fix the warning that Coverity reported in 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); |