[nautilus] window-slot: remove unused var



commit 1ed9a63b644eeaba6b3605d880f39bc37eaecae6
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Sep 3 11:20:22 2015 +0200

    window-slot: remove unused var

 src/nautilus-window-slot.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 6232b59..1119761 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -784,8 +784,6 @@ begin_location_change (NautilusWindowSlot         *slot,
        gboolean force_reload;
         char *current_pos;
        GFile *from_folder, *parent;
-       GList *parent_selection = NULL;
-
        g_assert (slot != NULL);
         g_assert (location != NULL);
         g_assert (type == NAUTILUS_LOCATION_CHANGE_BACK
@@ -816,8 +814,7 @@ begin_location_change (NautilusWindowSlot         *slot,
                }
 
                if (parent != NULL) {
-                       new_selection = parent_selection =
-                               g_list_prepend (NULL, nautilus_file_get (from_folder));
+                       new_selection = g_list_prepend (NULL, nautilus_file_get (from_folder));
                        g_object_unref (parent);
                }
 
@@ -862,10 +859,6 @@ begin_location_change (NautilusWindowSlot         *slot,
 
         nautilus_directory_unref (directory);
 
-       if (parent_selection != NULL) {
-               g_list_free_full (parent_selection, g_object_unref);
-       }
-
         /* Set current_bookmark scroll pos */
         if (slot->details->current_location_bookmark != NULL &&
             slot->details->content_view != NULL &&


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