[gnome-settings-daemon] keyboard: GCC 4.6 warning fixes



commit 9d888fd9222e79cb868790b0bb4ff2aead79c81f
Author: Kjartan Maraas <kmaraas gnome org>
Date:   Wed Mar 2 18:14:32 2011 +0000

    keyboard: GCC 4.6 warning fixes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=642803

 plugins/keyboard/gsd-keyboard-manager.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index d2ecd8a..23e16d8 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -433,10 +433,6 @@ gsd_keyboard_manager_set_property (GObject        *object,
                                    const GValue   *value,
                                    GParamSpec     *pspec)
 {
-        GsdKeyboardManager *self;
-
-        self = GSD_KEYBOARD_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -450,10 +446,6 @@ gsd_keyboard_manager_get_property (GObject        *object,
                                    GValue         *value,
                                    GParamSpec     *pspec)
 {
-        GsdKeyboardManager *self;
-
-        self = GSD_KEYBOARD_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -467,9 +459,6 @@ gsd_keyboard_manager_constructor (GType                  type,
                                   GObjectConstructParam *construct_properties)
 {
         GsdKeyboardManager      *keyboard_manager;
-        GsdKeyboardManagerClass *klass;
-
-        klass = GSD_KEYBOARD_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_KEYBOARD_MANAGER));
 
         keyboard_manager = GSD_KEYBOARD_MANAGER (G_OBJECT_CLASS (gsd_keyboard_manager_parent_class)->constructor (type,
                                                                                                       n_construct_properties,
@@ -481,10 +470,6 @@ gsd_keyboard_manager_constructor (GType                  type,
 static void
 gsd_keyboard_manager_dispose (GObject *object)
 {
-        GsdKeyboardManager *keyboard_manager;
-
-        keyboard_manager = GSD_KEYBOARD_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_keyboard_manager_parent_class)->dispose (object);
 }
 



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