[gnome-screensaver] Remove unused variables



commit 4f0124ac9c30f1c3d5dc413ca6c7db9c4afe8fc8
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Feb 10 16:32:13 2012 +1100

    Remove unused variables

 src/gs-fade.c        |    3 +--
 src/gs-grab-x11.c    |    2 --
 src/gs-watcher-x11.c |    7 +++----
 3 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/gs-fade.c b/src/gs-fade.c
index 7a46879..d135b35 100644
--- a/src/gs-fade.c
+++ b/src/gs-fade.c
@@ -386,10 +386,9 @@ gamma_fade_set_alpha_gamma (GSFade *fade,
                             gdouble alpha)
 {
         struct GSFadeScreenPrivate *screen_priv;
-        gboolean res;
 
         screen_priv = &fade->priv->screen_priv[screen_idx];
-        res = xf86_whack_gamma (screen_idx, screen_priv, alpha);
+        xf86_whack_gamma (screen_idx, screen_priv, alpha);
 
         return TRUE;
 }
diff --git a/src/gs-grab-x11.c b/src/gs-grab-x11.c
index 1169388..1ba1887 100644
--- a/src/gs-grab-x11.c
+++ b/src/gs-grab-x11.c
@@ -414,9 +414,7 @@ gs_grab_release (GSGrab *grab)
 static void
 request_shell_exit_overview (GSGrab *grab)
 {
-        GDBusMessage *reply;
         GDBusMessage *message;
-        GError *error = NULL;
 
         /* Shouldn't happen, but... */
         if (!grab->priv->session_bus)
diff --git a/src/gs-watcher-x11.c b/src/gs-watcher-x11.c
index 8dc7d14..41b38e7 100644
--- a/src/gs-watcher-x11.c
+++ b/src/gs-watcher-x11.c
@@ -340,7 +340,6 @@ static void
 set_status (GSWatcher *watcher,
             guint      status)
 {
-        gboolean res;
         gboolean is_idle;
 
         if (! watcher->priv->active) {
@@ -356,7 +355,7 @@ set_status (GSWatcher *watcher,
         }
 
         if (is_idle) {
-                res = _gs_watcher_set_session_idle_notice (watcher, is_idle);
+                _gs_watcher_set_session_idle_notice (watcher, is_idle);
                 /* queue an activation */
                 if (watcher->priv->idle_id > 0) {
                         g_source_remove (watcher->priv->idle_id);
@@ -369,8 +368,8 @@ set_status (GSWatcher *watcher,
                 if (watcher->priv->idle_id > 0) {
                         g_source_remove (watcher->priv->idle_id);
                 }
-                res = _gs_watcher_set_session_idle (watcher, FALSE);
-                res = _gs_watcher_set_session_idle_notice (watcher, FALSE);
+                _gs_watcher_set_session_idle (watcher, FALSE);
+                _gs_watcher_set_session_idle_notice (watcher, FALSE);
         }
 }
 



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