diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-09-03 11:20:22 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-09-03 16:18:13 +0200 |
commit | 1ed9a63b644eeaba6b3605d880f39bc37eaecae6 (patch) | |
tree | 502b3ad038e8ee22e685136e2606002ab9efef61 | |
parent | c66cf804ced4661c2088ec2168d72400814d5a4b (diff) | |
download | nautilus-1ed9a63b644eeaba6b3605d880f39bc37eaecae6.tar.gz |
window-slot: remove unused var
-rw-r--r-- | 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 6232b591e..111976173 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 && |