aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-06-20 10:56:02 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-06-20 10:56:02 +0800
commita5ae0a3c3d35bfde94385942a18c6026109cd648 (patch)
tree13182aea69f13c45bbd7b5deda7826dd56dbd8e5 /calendar/pcs
parentc9e9b9a7bd01883daf4ac57e83233aae40bf1439 (diff)
downloadgsoc2013-evolution-a5ae0a3c3d35bfde94385942a18c6026109cd648.tar.gz
gsoc2013-evolution-a5ae0a3c3d35bfde94385942a18c6026109cd648.tar.zst
gsoc2013-evolution-a5ae0a3c3d35bfde94385942a18c6026109cd648.zip
removed stuff to get builtin timezone info from the server.
2001-06-19 Damon Chaplin <damon@ximian.com> * 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
Diffstat (limited to 'calendar/pcs')
-rw-r--r--calendar/pcs/cal.c41
1 files changed, 0 insertions, 41 deletions
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;
}