summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-directory-async.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-08-17 13:00:47 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2012-08-17 13:02:29 -0400
commit564264cc6cc6fa44390791248019547a7133d70d (patch)
treea09fc4d87d310a15d6cf09b6354753c3dff5a77e /libnautilus-private/nautilus-directory-async.c
parent9d98ebadc1401ed87e5054944850f5c7a19d2833 (diff)
downloadnautilus-564264cc6cc6fa44390791248019547a7133d70d.tar.gz
No need to iterate to clear all hash items
Diffstat (limited to 'libnautilus-private/nautilus-directory-async.c')
-rw-r--r--libnautilus-private/nautilus-directory-async.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libnautilus-private/nautilus-directory-async.c b/libnautilus-private/nautilus-directory-async.c
index 9bf18b31b..e06726611 100644
--- a/libnautilus-private/nautilus-directory-async.c
+++ b/libnautilus-private/nautilus-directory-async.c
@@ -1075,12 +1075,6 @@ directory_load_cancel (NautilusDirectory *directory)
}
}
-static gboolean
-remove_callback (gpointer key, gpointer value, gpointer user_data)
-{
- return TRUE;
-}
-
static void
file_list_cancel (NautilusDirectory *directory)
{
@@ -1097,7 +1091,7 @@ file_list_cancel (NautilusDirectory *directory)
}
if (directory->details->hidden_file_hash) {
- g_hash_table_foreach_remove (directory->details->hidden_file_hash, remove_callback, NULL);
+ g_hash_table_remove_all (directory->details->hidden_file_hash);
}
}