From 95b6ff339e69befec13b7a5f3831d1b74db0d87e Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Sun, 26 Apr 1998 02:10:55 +0000 Subject: Remove debug code -mig svn path=/trunk/; revision=196 --- calendar/gui/calendar.c | 2 ++ calendar/gui/gnome-cal.c | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c index 2a5b532a04..5bfb5ea21c 100644 --- a/calendar/gui/calendar.c +++ b/calendar/gui/calendar.c @@ -97,8 +97,10 @@ calendar_add_object (Calendar *cal, iCalObject *obj) case ICAL_EVENT: cal->events = g_list_prepend (cal->events, obj); ical_object_try_alarms (obj); +#ifdef DEBUGGING_MAIL_ALARM obj->malarm.trigger = 0; calendar_notify (0, obj); +#endif break; case ICAL_TODO: diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 534db8bb4c..d44c5e89f3 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -294,10 +294,6 @@ calendar_notify (time_t time, void *data) if (pid == 0){ const int top = max_open_files (); int dev_null, i; - - for (i = 0; i < top; i++) - if (i != p [1]) - close (i); dev_null = open ("/dev/null", O_RDWR); dup2 (p [1], 0); dup2 (dev_null, 1); -- cgit v1.2.3