diff options
Diffstat (limited to 'calendar/cal-util')
-rw-r--r-- | calendar/cal-util/cal-component.c | 41 | ||||
-rw-r--r-- | calendar/cal-util/cal-component.h | 3 |
2 files changed, 0 insertions, 44 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c index b806f8e3e7..7bacfb5432 100644 --- a/calendar/cal-util/cal-component.c +++ b/calendar/cal-util/cal-component.c @@ -4934,44 +4934,3 @@ cal_component_event_dates_match (CalComponent *comp1, return TRUE; } -/* Returns TRUE if the TZIDs are equivalent, i.e. both NULL or the same. */ -static gboolean -cal_component_compare_tzid (const char *tzid1, const char *tzid2) -{ - gboolean retval = TRUE; - - if (tzid1) { - if (!tzid2 || strcmp (tzid1, tzid2)) - retval = FALSE; - } else { - if (tzid2) - retval = FALSE; - } - - return retval; -} - -/* Returns TRUE if the component uses the given timezones for both DTSTART - and DTEND. */ -gboolean -cal_component_compare_event_timezone (CalComponent *comp, icaltimezone *zone) -{ - CalComponentDateTime datetime; - const char *tzid; - gboolean match; - - tzid = icaltimezone_get_tzid (zone); - - cal_component_get_dtstart (comp, &datetime); - match = cal_component_compare_tzid (tzid, datetime.tzid); - cal_component_free_datetime (&datetime); - if (!match) - return FALSE; - - /* FIXME: DURATION may be used instead. */ - cal_component_get_dtend (comp, &datetime); - match = cal_component_compare_tzid (tzid, datetime.tzid); - cal_component_free_datetime (&datetime); - - return match; -} diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index f0628cb967..e1f4022b91 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -335,9 +335,6 @@ void cal_component_set_attendee_list (CalComponent *comp, GSList *attendee_list) gboolean cal_component_event_dates_match (CalComponent *comp1, CalComponent *comp2); -/* Returns TRUE if the component uses the given timezones for both DTSTART - and DTEND. */ -gboolean cal_component_compare_event_timezone (CalComponent *comp, icaltimezone *zone); /* Functions to free returned values */ |