[goobox] removed unused variables



commit b6360374e9061461f095365b6b18abff8e23f298
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Aug 22 20:06:03 2011 +0200

    removed unused variables

 src/goo-volume-tool-button.c   |    3 ---
 src/goo-window.c               |   12 ++----------
 src/gtk-file-chooser-preview.c |    4 ----
 3 files changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/src/goo-volume-tool-button.c b/src/goo-volume-tool-button.c
index 5fd399b..88df3e4 100644
--- a/src/goo-volume-tool-button.c
+++ b/src/goo-volume-tool-button.c
@@ -192,9 +192,6 @@ goo_volume_tool_button_init (GooVolumeToolButton *button)
 static void
 goo_volume_tool_button_finalize (GObject *object)
 {
-	GooVolumeToolButton *button;
-
-	button = GOO_VOLUME_TOOL_BUTTON (object);
 	G_OBJECT_CLASS (goo_volume_tool_button_parent_class)->finalize (object);
 }
 
diff --git a/src/goo-window.c b/src/goo-window.c
index 4827f09..f5b40d6 100644
--- a/src/goo-window.c
+++ b/src/goo-window.c
@@ -203,24 +203,20 @@ static void
 window_update_sensitivity (GooWindow *window)
 {
 	int            n_selected;
-	gboolean       sel_not_null;
 	gboolean       one_file_selected;
 	GooPlayerState state;
 	gboolean       error;
 	gboolean       audio_cd;
 	gboolean       playing;
 	gboolean       paused;
-	gboolean       stopped;
 	gboolean       play_all;
 
 	n_selected        = _gtk_count_selected (gtk_tree_view_get_selection (GTK_TREE_VIEW (window->priv->list_view)));
-	sel_not_null      = n_selected > 0;
 	one_file_selected = n_selected == 1;
 	state             = goo_player_get_state (window->priv->player);
 	error             = ! goo_player_is_audio_cd (window->priv->player) || window->priv->hibernate;
 	playing           = state == GOO_PLAYER_STATE_PLAYING;
 	paused            = state == GOO_PLAYER_STATE_PAUSED;
-	stopped           = state == GOO_PLAYER_STATE_STOPPED;
 	play_all          = g_settings_get_boolean (window->priv->settings_playlist, PREF_PLAYLIST_PLAYALL);
 	audio_cd          = (! error) && (goo_player_get_discid (window->priv->player) != NULL);
 
@@ -1464,15 +1460,11 @@ static void
 window_update_title (GooWindow *window)
 {
 	GooPlayerState  state;
-	gboolean        playing;
 	gboolean        paused;
-	gboolean        stopped;
 	GString        *title;
 
-	state   = goo_player_get_state (window->priv->player);
-	playing = state == GOO_PLAYER_STATE_PLAYING;
-	paused  = state == GOO_PLAYER_STATE_PAUSED;
-	stopped = state == GOO_PLAYER_STATE_STOPPED;
+	state = goo_player_get_state (window->priv->player);
+	paused = state == GOO_PLAYER_STATE_PAUSED;
 
 	title = g_string_new ("");
 
diff --git a/src/gtk-file-chooser-preview.c b/src/gtk-file-chooser-preview.c
index 0c8c11c..9da8c39 100644
--- a/src/gtk-file-chooser-preview.c
+++ b/src/gtk-file-chooser-preview.c
@@ -106,11 +106,7 @@ gtk_file_chooser_preview_class_init (GtkFileChooserPreviewClass *class)
 static void
 gtk_file_chooser_preview_init (GtkFileChooserPreview *preview)
 {
-	GtkFileChooserPreviewPrivateData *priv;
-
 	preview->priv = g_new0 (GtkFileChooserPreviewPrivateData, 1);
-	priv = preview->priv;
-
 	preview->priv->thumb_factory = gnome_desktop_thumbnail_factory_new (GNOME_DESKTOP_THUMBNAIL_SIZE_NORMAL);
 	preview->priv->uri = NULL;
 }



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