[gnome-session] Drop dead code



commit 7f0d2ad091e8591b4a810fe1d8d7dd3bfd740f5c
Author: Maxime Villard <max m00nbsd net>
Date:   Wed Aug 21 09:27:52 2013 -0400

    Drop dead code

 gnome-session/gsm-autostart-app.c       |    2 +-
 gnome-session/gsm-inhibit-dialog.c      |    4 ++--
 gnome-session/gsm-manager.c             |    1 -
 gnome-session/gsm-session-save.c        |    2 +-
 tools/gnome-session-check-accelerated.c |    2 +-
 5 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gnome-session/gsm-autostart-app.c b/gnome-session/gsm-autostart-app.c
index df8dd28..f90e528 100644
--- a/gnome-session/gsm-autostart-app.c
+++ b/gnome-session/gsm-autostart-app.c
@@ -906,7 +906,7 @@ static int
 _signal_pid (int pid,
              int signal)
 {
-        int status = -1;
+        int status;
 
         /* perhaps block sigchld */
         g_debug ("GsmAutostartApp: sending signal %d to process %d", signal, pid);
diff --git a/gnome-session/gsm-inhibit-dialog.c b/gnome-session/gsm-inhibit-dialog.c
index b8c8a63..a3c9c09 100644
--- a/gnome-session/gsm-inhibit-dialog.c
+++ b/gnome-session/gsm-inhibit-dialog.c
@@ -174,8 +174,8 @@ scale_pixbuf (GdkPixbuf *pixbuf,
 {
         int        pw;
         int        ph;
-        float      scale_factor_x = 1.0;
-        float      scale_factor_y = 1.0;
+        float      scale_factor_x;
+        float      scale_factor_y;
         float      scale_factor = 1.0;
 
         pw = gdk_pixbuf_get_width (pixbuf);
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index bcd4a7e..dd47b69 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -1973,7 +1973,6 @@ register_manager (GsmManager *manager)
         GError *error = NULL;
         DBusConnection *connection;
 
-        error = NULL;
         manager->priv->connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
         if (manager->priv->connection == NULL) {
                 if (error != NULL) {
diff --git a/gnome-session/gsm-session-save.c b/gnome-session/gsm-session-save.c
index aeb575f..917347f 100644
--- a/gnome-session/gsm-session-save.c
+++ b/gnome-session/gsm-session-save.c
@@ -177,7 +177,7 @@ gsm_session_clear_one_client (const char *filename,
                               GHashTable *discard_hash)
 {
         gboolean  result = TRUE;
-        GKeyFile *key_file = NULL;
+        GKeyFile *key_file;
         char     *discard_exec = NULL;
 
         g_debug ("GsmSessionSave: removing '%s' from saved session", filename);
diff --git a/tools/gnome-session-check-accelerated.c b/tools/gnome-session-check-accelerated.c
index 14e0e9f..cae2422 100644
--- a/tools/gnome-session-check-accelerated.c
+++ b/tools/gnome-session-check-accelerated.c
@@ -79,7 +79,7 @@ property_notify_filter (GdkXEvent *xevent,
 static gboolean
 wait_for_property_notify (void)
 {
-        GdkDisplay *display = NULL;
+        GdkDisplay *display;
         GdkScreen *screen;
         GdkWindow *root;
         Window rootwin;


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