aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libical/ChangeLog4
-rw-r--r--libical/src/libical/icaltimezone.c38
2 files changed, 4 insertions, 38 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index 08d291ee08..054ed73e74 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,3 +1,7 @@
+2001-08-01 Damon Chaplin <damon@ximian.com>
+
+ * src/libical/icaltimezone.c: removed some debugging messages.
+
2001-07-30 Damon Chaplin <damon@ximian.com>
* src/libical/icaltimezone.c (icaltimezone_get_builtin_timezone):
diff --git a/libical/src/libical/icaltimezone.c b/libical/src/libical/icaltimezone.c
index 92bb9b7c10..fcb12c378b 100644
--- a/libical/src/libical/icaltimezone.c
+++ b/libical/src/libical/icaltimezone.c
@@ -257,21 +257,15 @@ icaltimezone_get_vtimezone_properties (icaltimezone *zone,
icalproperty *prop;
const char *tzid, *location;
- fprintf (stderr, "In icaltimezone_get_vtimezone_properties\n");
-
prop = icalcomponent_get_first_property (component, ICAL_TZID_PROPERTY);
if (!prop)
return 0;
- fprintf (stderr, " found TZID property, getting TZID\n");
-
/* A VTIMEZONE MUST have a TZID, or a lot of our code won't work. */
tzid = icalproperty_get_tzid (prop);
if (!tzid)
return 0;
- fprintf (stderr, " found TZID: %s\n", tzid);
-
zone->tzid = strdup (tzid);
zone->component = component;
zone->location = icaltimezone_get_location_from_vtimezone (component);
@@ -912,21 +906,10 @@ icaltimezone_get_utc_offset_of_utc_time (icaltimezone *zone,
{
icaltimezonechange *zone_change, tt_change, tmp_change;
int change_num, step, change_num_to_use;
- int debug = 0;
if (is_daylight)
*is_daylight = 0;
-#if 0
- if (tt->day == 30 && tt->month == 3 && tt->year == 2000
- && tt->hour == 22 && tt->minute == 0 && tt->second == 0) {
- printf ("Getting UTC offset of %i/%i/%i %i:%02i:%02i\n",
- tt->day, tt->month, tt->year,
- tt->hour, tt->minute, tt->second);
- debug = 1;
- }
-#endif
-
/* For local times and UTC return 0. */
if (zone == NULL || zone == &utc_timezone)
return 0;
@@ -969,13 +952,6 @@ icaltimezone_get_utc_offset_of_utc_time (icaltimezone *zone,
/* Copy the change and adjust it to UTC. */
tmp_change = *zone_change;
- if (debug) {
- printf (" Change: %i/%i/%i %i:%02i:%02i\n",
- zone_change->day, zone_change->month, zone_change->year,
- zone_change->hour, zone_change->minute, zone_change->second);
- }
-
-
/* If the given time is on or after this change, then this change may
apply, but we continue as a later change may be the right one.
If the given time is before this change, then if we have already
@@ -1015,13 +991,6 @@ icaltimezone_get_utc_offset_of_utc_time (icaltimezone *zone,
if (is_daylight)
*is_daylight = zone_change->is_daylight;
- if (debug) {
- printf (" Change: %i/%i/%i %i:%02i:%02i\n",
- zone_change->day, zone_change->month, zone_change->year,
- zone_change->hour, zone_change->minute, zone_change->second);
- printf (" -> %i\n", zone_change->utc_offset);
- }
-
return zone_change->utc_offset;
}
@@ -1286,9 +1255,6 @@ icaltimezone_get_builtin_timezone (const char *location)
int lower, upper, middle, cmp;
char *zone_location;
- fprintf (stderr, "Getting builtin timezone: %s\n",
- location ? location : "(null)");
-
if (!location || !location[0])
return NULL;
@@ -1315,8 +1281,6 @@ icaltimezone_get_builtin_timezone (const char *location)
lower = middle + 1;
}
- fprintf (stderr, " ***** not found\n");
-
return NULL;
}
@@ -1329,8 +1293,6 @@ icaltimezone_get_builtin_timezone_from_tzid (const char *tzid)
const char *p, *zone_tzid;
icaltimezone *zone;
- fprintf (stderr, "Getting builtin timezone from TZID: %s\n", tzid);
-
if (!tzid || !tzid[0])
return NULL;