From a5ae0a3c3d35bfde94385942a18c6026109cd648 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Wed, 20 Jun 2001 02:56:02 +0000 Subject: removed stuff to get builtin timezone info from the server. 2001-06-19 Damon Chaplin * pcs/cal.c: * idl/evolution-calendar.idl: * cal-client/cal-client.[hc]: removed stuff to get builtin timezone info from the server. svn path=/trunk/; revision=10322 --- calendar/pcs/cal.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'calendar/pcs') diff --git a/calendar/pcs/cal.c b/calendar/pcs/cal.c index a76d3a7f38..42ccbf3cee 100644 --- a/calendar/pcs/cal.c +++ b/calendar/pcs/cal.c @@ -378,46 +378,6 @@ impl_Cal_get_query (PortableServer_Servant servant, return query_copy; } -/* Cal::getBuiltinTimezoneInfo method */ -static GNOME_Evolution_Calendar_CalTimezoneInfoSeq * -impl_Cal_get_builtin_timezone_info (PortableServer_Servant servant, - CORBA_Environment *ev) -{ - GNOME_Evolution_Calendar_CalTimezoneInfoSeq *seq; - icalarray *zones; - icaltimezone *zone; - int n, i; - char *location; - - zones = icaltimezone_get_builtin_timezones (); - if (!zones) { - CORBA_exception_set (ev, CORBA_USER_EXCEPTION, - ex_GNOME_Evolution_Calendar_Cal_NotFound, - NULL); - return CORBA_OBJECT_NIL; - } - - n = zones->num_elements; - - seq = GNOME_Evolution_Calendar_CalTimezoneInfoSeq__alloc (); - CORBA_sequence_set_release (seq, TRUE); - seq->_length = n; - seq->_buffer = CORBA_sequence_GNOME_Evolution_Calendar_CalTimezoneInfo_allocbuf (n); - - /* Fill the sequence */ - - for (i = 0; i < n; i++) { - zone = icalarray_element_at (zones, i); - location = icaltimezone_get_location (zone); - - seq->_buffer[i].location = CORBA_string_dup (location); - seq->_buffer[i].latitude = icaltimezone_get_latitude (zone); - seq->_buffer[i].longitude = icaltimezone_get_longitude (zone); - } - - return seq; -} - /** * cal_construct: * @cal: A calendar client interface. @@ -548,7 +508,6 @@ cal_class_init (CalClass *klass) epv->updateObject = impl_Cal_update_object; epv->removeObject = impl_Cal_remove_object; epv->getQuery = impl_Cal_get_query; - epv->getBuiltinTimezoneInfo = impl_Cal_get_builtin_timezone_info; } -- cgit