Remove some dead code. Closes bug #315278.
authorKjartan Maraas <kmaraas@gnome.org>
Sun, 11 Sep 2005 15:20:52 +0000 (15:20 +0000)
committerKjartan Maraas <kmaraas@src.gnome.org>
Sun, 11 Sep 2005 15:20:52 +0000 (15:20 +0000)
2005-09-11  Kjartan Maraas  <kmaraas@gnome.org>

* glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
(child_watch_helper_thread): Remove some dead code. Closes
bug #315278.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
glib/gmain.c

index 9dc471f..4c32449 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-11  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
+       (child_watch_helper_thread): Remove some dead code. Closes
+       bug #315278.
+
 2005-09-07  Tor Lillqvist  <tml@novell.com>
 
        * glib/Makefile.am: Create also a console version of the
index 9dc471f..4c32449 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-11  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
+       (child_watch_helper_thread): Remove some dead code. Closes
+       bug #315278.
+
 2005-09-07  Tor Lillqvist  <tml@novell.com>
 
        * glib/Makefile.am: Create also a console version of the
index 9dc471f..4c32449 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-11  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
+       (child_watch_helper_thread): Remove some dead code. Closes
+       bug #315278.
+
 2005-09-07  Tor Lillqvist  <tml@novell.com>
 
        * glib/Makefile.am: Create also a console version of the
index 582d2f6..b5021b3 100644 (file)
@@ -3492,11 +3492,8 @@ static gboolean
 g_child_watch_prepare (GSource *source,
                       gint    *timeout)
 {
-  GChildWatchSource *child_watch_source;
   *timeout = -1;
 
-  child_watch_source = (GChildWatchSource *) source;
-
   return check_for_child_exited (source);
 }
 
@@ -3504,10 +3501,6 @@ g_child_watch_prepare (GSource *source,
 static gboolean 
 g_child_watch_check (GSource  *source)
 {
-  GChildWatchSource *child_watch_source;
-
-  child_watch_source = (GChildWatchSource *) source;
-
   return check_for_child_exited (source);
 }
 
@@ -3573,18 +3566,6 @@ g_child_watch_source_init_single (void)
 static gpointer
 child_watch_helper_thread (gpointer data)
 {
-  GPollFD fds;
-  GPollFunc poll_func;
-
-#ifdef HAVE_POLL
-      poll_func = (GPollFunc)poll;
-#else
-      poll_func = g_poll;
-#endif
-
-  fds.fd = child_watch_wake_up_pipe[0];
-  fds.events = G_IO_IN;
-
   while (1)
     {
       gchar b[20];
@@ -3608,7 +3589,6 @@ child_watch_helper_thread (gpointer data)
        }
       G_UNLOCK (main_context_list);
     }
-  return NULL;
 }
 
 static void