summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-11-27 18:11:41 +0100
committerCarlos Soriano <csoriano@gnome.org>2015-11-27 18:11:41 +0100
commitc4e5cfd7fed2c8247fcbee3a588183fb29901489 (patch)
tree48224fe85dfa2ea90f5f2631118d9b04ce1534a4
parent4413816afcfd51bde78b488ad83b2d86fa7337ea (diff)
downloadnautilus-c4e5cfd7fed2c8247fcbee3a588183fb29901489.tar.gz
files-view: fix leak and remove unneeded code
-rw-r--r--src/nautilus-files-view.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index f732c7c46..a7caa7204 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -1714,30 +1714,12 @@ new_folder_done (GFile *new_folder,
screen_string);
if (data->selection != NULL) {
- NewFolderSelectionData *sdata;
GList *uris, *l;
char *target_uri;
- sdata = g_new (NewFolderSelectionData, 1);
- sdata->directory_view = directory_view;
- sdata->to_remove_locations = g_hash_table_new_full (g_file_hash, (GEqualFunc)g_file_equal,
- g_object_unref, NULL);
- sdata->new_folder = nautilus_file_ref (file);
-
uris = NULL;
for (l = data->selection; l != NULL; l = l->next) {
- GFile *old_location;
- GFile *new_location;
- char *basename;
-
uris = g_list_prepend (uris, nautilus_file_get_uri ((NautilusFile *) l->data));
-
- old_location = nautilus_file_get_location (l->data);
- basename = g_file_get_basename (old_location);
- new_location = g_file_resolve_relative_path (new_folder, basename);
- g_hash_table_insert (sdata->to_remove_locations, new_location, NULL);
- g_free (basename);
- g_object_unref (old_location);
}
uris = g_list_reverse (uris);