[Xfce4-commits] [apps/xfce4-screensaver] 227/425: remove more unused variables

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:51:14 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 f78b6c9444c46c54440b8f6367d88f0e80e72a36
Author: Wolfgang Ulbrich <chat-to-me at raveit.de>
Date:   Sun Dec 13 16:30:40 2015 +0100

    remove more unused variables
    
    this avoid some build warnings
---
 savers/gs-theme-engine.c           | 8 ++------
 savers/gs-theme-window.c           | 3 +--
 savers/gste-popsquares.c           | 8 ++------
 src/gs-listener-dbus.c             | 3 +--
 src/mate-screensaver-preferences.c | 3 +--
 5 files changed, 7 insertions(+), 18 deletions(-)

diff --git a/savers/gs-theme-engine.c b/savers/gs-theme-engine.c
index 900d95d..d2ad4ad 100644
--- a/savers/gs-theme-engine.c
+++ b/savers/gs-theme-engine.c
@@ -81,9 +81,7 @@ gs_theme_engine_set_property (GObject            *object,
                               const GValue       *value,
                               GParamSpec         *pspec)
 {
-	GSThemeEngine *self;
-
-	self = GS_THEME_ENGINE (object);
+	GS_THEME_ENGINE (object);
 
 	switch (prop_id)
 	{
@@ -99,9 +97,7 @@ gs_theme_engine_get_property (GObject            *object,
                               GValue             *value,
                               GParamSpec         *pspec)
 {
-	GSThemeEngine *self;
-
-	self = GS_THEME_ENGINE (object);
+	GS_THEME_ENGINE (object);
 
 	switch (prop_id)
 	{
diff --git a/savers/gs-theme-window.c b/savers/gs-theme-window.c
index 70ac063..0741aad 100644
--- a/savers/gs-theme-window.c
+++ b/savers/gs-theme-window.c
@@ -100,10 +100,9 @@ gs_theme_window_init (GSThemeWindow *window)
 static void
 gs_theme_window_finalize (GObject *object)
 {
-	GSThemeWindow *window;
 	GObjectClass  *parent_class;
 
-	window = GS_THEME_WINDOW (object);
+	GS_THEME_WINDOW (object);
 
 	parent_class = G_OBJECT_CLASS (gs_theme_window_parent_class);
 
diff --git a/savers/gste-popsquares.c b/savers/gste-popsquares.c
index 245be48..a279f27 100644
--- a/savers/gste-popsquares.c
+++ b/savers/gste-popsquares.c
@@ -336,9 +336,7 @@ gste_popsquares_set_property (GObject            *object,
                               const GValue       *value,
                               GParamSpec         *pspec)
 {
-	GSTEPopsquares *self;
-
-	self = GSTE_POPSQUARES (object);
+	GSTE_POPSQUARES (object);
 
 	switch (prop_id)
 	{
@@ -354,9 +352,7 @@ gste_popsquares_get_property (GObject            *object,
                               GValue             *value,
                               GParamSpec         *pspec)
 {
-	GSTEPopsquares *self;
-
-	self = GSTE_POPSQUARES (object);
+	GSTE_POPSQUARES (object);
 
 	switch (prop_id)
 	{
diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
index 3a73612..ec0be3f 100644
--- a/src/gs-listener-dbus.c
+++ b/src/gs-listener-dbus.c
@@ -1005,7 +1005,6 @@ listener_dbus_remove_ref_entry (GSListener     *listener,
 {
 	DBusMessage        *reply;
 	DBusError           error;
-	const char         *sender;
 	guint32             cookie;
 
 	dbus_error_init (&error);
@@ -1034,7 +1033,7 @@ listener_dbus_remove_ref_entry (GSListener     *listener,
 		g_error ("No memory");
 
 	/* FIXME: check sender is from same connection as entry */
-	sender = dbus_message_get_sender (message);
+	dbus_message_get_sender (message);
 
 	listener_remove_ref_entry (listener, entry_type, cookie);
 
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index 19db7d5..62e9eaf 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -1552,7 +1552,6 @@ init_capplet (void)
 	GtkWidget *fullscreen_preview_window;
 	GtkWidget *fullscreen_preview_previous;
 	GtkWidget *fullscreen_preview_next;
-	GtkWidget *fullscreen_preview_area;
 	GtkWidget *fullscreen_preview_close;
 	char      *gtk_builder_file;
 	gdouble    activate_delay;
@@ -1599,7 +1598,7 @@ init_capplet (void)
 	preview_button     = GTK_WIDGET (gtk_builder_get_object (builder, "preview_button"));
 	gpm_button         = GTK_WIDGET (gtk_builder_get_object (builder, "gpm_button"));
 	fullscreen_preview_window = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_window"));
-	fullscreen_preview_area = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_area"));
+	GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_area"));
 	fullscreen_preview_close = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_close"));
 	fullscreen_preview_previous = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_previous_button"));
 	fullscreen_preview_next = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_next_button"));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list