[Xfce4-commits] [apps/xfce4-screensaver] 225/425: drop some unused variables
noreply at xfce.org
noreply at xfce.org
Mon Oct 15 01:51:12 CEST 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screensaver.
commit c654bc42b3c6b08fc094b6e4bf70bf123c3e42e8
Author: Wolfgang Ulbrich <chat-to-me at raveit.de>
Date: Fri Dec 11 15:00:26 2015 +0100
drop some unused variables
taken from:
https://git.gnome.org/browse/gnome-screensaver/commit/?id=214ab95
https://git.gnome.org/browse/gnome-screensaver/commit/?id=4f0124a
---
src/gs-fade.c | 3 +--
src/gs-watcher-x11.c | 7 +++----
src/gs-window-x11.c | 8 ++------
3 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/src/gs-fade.c b/src/gs-fade.c
index e8d52b7..b571ec8 100644
--- a/src/gs-fade.c
+++ b/src/gs-fade.c
@@ -408,10 +408,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-watcher-x11.c b/src/gs-watcher-x11.c
index d740cfa..c3c8f72 100644
--- a/src/gs-watcher-x11.c
+++ b/src/gs-watcher-x11.c
@@ -357,7 +357,6 @@ static void
set_status (GSWatcher *watcher,
guint status)
{
- gboolean res;
gboolean is_idle;
if (! watcher->priv->active)
@@ -376,7 +375,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)
{
@@ -394,8 +393,8 @@ set_status (GSWatcher *watcher,
g_source_remove (watcher->priv->idle_id);
watcher->priv->idle_id = 0;
}
- 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);
}
}
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index 231d8fc..c3d7495 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -1578,9 +1578,7 @@ keyboard_command_finish (GSWindow *window)
if (window->priv->keyboard_pid > 0)
{
- int exit_status;
-
- exit_status = wait_on_child (window->priv->keyboard_pid);
+ wait_on_child (window->priv->keyboard_pid);
g_spawn_close_pid (window->priv->keyboard_pid);
window->priv->keyboard_pid = 0;
@@ -1718,9 +1716,7 @@ gs_window_dialog_finish (GSWindow *window)
if (window->priv->lock_pid > 0)
{
- int exit_status;
-
- exit_status = wait_on_child (window->priv->lock_pid);
+ wait_on_child (window->priv->lock_pid);
g_spawn_close_pid (window->priv->lock_pid);
window->priv->lock_pid = 0;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list