[gnome-session] presence: Remove impossible check



commit a1e961c7de92734747096c6d0680362bf7f98b00
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 23 15:15:37 2013 +0100

    presence: Remove impossible check
    
    The idle-monitor will always exist, even if XSync isn't available.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692392

 gnome-session/gsm-presence.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gnome-session/gsm-presence.c b/gnome-session/gsm-presence.c
index 67e47f5..13d70ba 100644
--- a/gnome-session/gsm-presence.c
+++ b/gnome-session/gsm-presence.c
@@ -156,10 +156,6 @@ idle_became_active_cb (GnomeIdleMonitor *idle_monitor,
 static void
 reset_idle_watch (GsmPresence  *presence)
 {
-        if (presence->priv->idle_monitor == NULL) {
-                return;
-        }
-
         if (presence->priv->idle_watch_id > 0) {
                 g_debug ("GsmPresence: removing idle watch");
                 gnome_idle_monitor_remove_watch (presence->priv->idle_monitor,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]