From 883201a49341d588f5a6ffe2b7fd54676eb71019 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 8 Feb 2016 10:48:43 +0300 Subject: use g_hash_table_remove_all and get rid of some callbacks taken from https://git.gnome.org/browse/nautilus/commit/?id=564264cc6cc6fa44390791248019547a7133d70d and applied in some other places as well --- libcaja-private/caja-directory-async.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libcaja-private/caja-directory-async.c') diff --git a/libcaja-private/caja-directory-async.c b/libcaja-private/caja-directory-async.c index a795c161..5bab5858 100644 --- a/libcaja-private/caja-directory-async.c +++ b/libcaja-private/caja-directory-async.c @@ -1162,12 +1162,6 @@ directory_load_cancel (CajaDirectory *directory) } } -static gboolean -remove_callback (gpointer key, gpointer value, gpointer user_data) -{ - return TRUE; -} - static void file_list_cancel (CajaDirectory *directory) { @@ -1187,7 +1181,7 @@ file_list_cancel (CajaDirectory *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); } } -- cgit v1.2.1