summaryrefslogtreecommitdiff
path: root/eel/eel-glib-extensions.h
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-12-08 14:28:35 +0100
committerCarlos Soriano <csoriano@gnome.org>2015-12-11 22:42:04 +0100
commit864c815479a25a2b99ca354ff20edf5804d46070 (patch)
tree6834bbc1cd2ec026919f563fe2ea1461bd77d7de /eel/eel-glib-extensions.h
parent81c58a9c7ae2688ed7fff7f3400a698bbc4d1a00 (diff)
downloadnautilus-864c815479a25a2b99ca354ff20edf5804d46070.tar.gz
file: refactor eel-partition for better ownership management
Instead of a generic function to filter GLists, implement a simpler and clearer filter function for file lists, since it was the only use of that function. In this way the ownership of files and directories are clearer since it always returns a new allocated nautilus file list, and also it always uses nautilus_file_ref instead of the generic g_object_ref to match what we do everywhere else in nautilus, so it's not confusing when breaking at nautilus_file_ref/unref for ref counting debugging. This change fixes multiple leaks on nautilus files catched by valgrind.
Diffstat (limited to 'eel/eel-glib-extensions.h')
-rw-r--r--eel/eel-glib-extensions.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/eel/eel-glib-extensions.h b/eel/eel-glib-extensions.h
index 2ccb86200..f23302433 100644
--- a/eel/eel-glib-extensions.h
+++ b/eel/eel-glib-extensions.h
@@ -39,11 +39,6 @@ typedef gboolean (* EelPredicateFunction) (gpointer data,
/* GList functions. */
gboolean eel_g_lists_sort_and_check_for_intersection (GList **list_a,
GList **list_b);
-GList * eel_g_list_partition (GList *list,
- EelPredicateFunction predicate,
- gpointer user_data,
- GList **removed);
-
/* GHashTable functions */
void eel_g_hash_table_safe_for_each (GHashTable *hash_table,
GHFunc callback,