[gtk+/gtk-2-24] Remove some unused variables



commit 461c1a547efb13c7a2f22ab9bf4c7b5aaf5fc5c3
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Mar 6 12:42:24 2013 -0600

    Remove some unused variables

 gtk/gtkfilesystem.c |    2 --
 gtk/gtkpathbar.c    |    5 -----
 2 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c
index fd2bfb3..f766084 100644
--- a/gtk/gtkfilesystem.c
+++ b/gtk/gtkfilesystem.c
@@ -1298,12 +1298,10 @@ GtkFileSystemVolume *
 _gtk_file_system_get_volume_for_file (GtkFileSystem *file_system,
                                      GFile         *file)
 {
-  GtkFileSystemPrivate *priv;
   GMount *mount;
 
   DEBUG ("get_volume_for_file");
 
-  priv = GTK_FILE_SYSTEM_GET_PRIVATE (file_system);
   mount = g_file_find_enclosing_mount (file, NULL, NULL);
 
   if (!mount && g_file_is_native (file))
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 87bec1a..2813c8e 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1426,11 +1426,9 @@ button_drag_data_get_cb (GtkWidget          *widget,
                         gpointer            data)
 {
   ButtonData *button_data;
-  GtkPathBar *path_bar;
   char *uris[2];
 
   button_data = data;
-  path_bar = GTK_PATH_BAR (widget->parent); /* the button's parent *is* the path bar */
 
   uris[0] = g_file_get_uri (button_data->file);
   uris[1] = NULL;
@@ -1701,13 +1699,10 @@ _gtk_path_bar_set_file (GtkPathBar         *path_bar,
                        GError            **error)
 {
   struct SetFileInfo *info;
-  gboolean result;
 
   g_return_val_if_fail (GTK_IS_PATH_BAR (path_bar), FALSE);
   g_return_val_if_fail (G_IS_FILE (file), FALSE);
 
-  result = TRUE;
-
   /* Check whether the new path is already present in the pathbar as buttons.
    * This could be a parent directory or a previous selected subdirectory.
    */


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