summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-03-05 10:23:15 +0100
committerVictor Kareh <[email protected]>2019-03-07 10:40:57 -0500
commit074f0a6f7aa3a82be12bb0b9535d657dfba75e55 (patch)
treef5de13d15dae7f8f7112d903c109d9a79865cbc7 /eel
parentfc9a637006bab37dbb73c678983032111831a623 (diff)
downloadcaja-074f0a6f7aa3a82be12bb0b9535d657dfba75e55.tar.bz2
caja-074f0a6f7aa3a82be12bb0b9535d657dfba75e55.tar.xz
eel: remove g_list_free_deep_custom
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-glib-extensions.c18
-rw-r--r--eel/eel-glib-extensions.h3
2 files changed, 1 insertions, 20 deletions
diff --git a/eel/eel-glib-extensions.c b/eel/eel-glib-extensions.c
index 0ec5db6c..189536c6 100644
--- a/eel/eel-glib-extensions.c
+++ b/eel/eel-glib-extensions.c
@@ -376,22 +376,6 @@ eel_g_str_list_index (GList *str_list,
}
/**
- * eel_g_list_free_deep_custom
- *
- * Frees the elements of a list and then the list, using a custom free function.
- *
- * @list: List of elements that can be freed with the provided free function.
- * @element_free_func: function to call with the data pointer and user_data to free it.
- * @user_data: User data to pass to element_free_func
- **/
-void
-eel_g_list_free_deep_custom (GList *list, GFunc element_free_func, gpointer user_data)
-{
- g_list_foreach (list, element_free_func, user_data);
- g_list_free (list);
-}
-
-/**
* eel_g_list_free_deep
*
* Frees the elements of a list and then the list.
@@ -400,7 +384,7 @@ eel_g_list_free_deep_custom (GList *list, GFunc element_free_func, gpointer user
void
eel_g_list_free_deep (GList *list)
{
- eel_g_list_free_deep_custom (list, (GFunc) g_free, NULL);
+ g_list_free_full (list, (GDestroyNotify) g_free);
}
/**
diff --git a/eel/eel-glib-extensions.h b/eel/eel-glib-extensions.h
index 9c62c57f..f50f80b9 100644
--- a/eel/eel-glib-extensions.h
+++ b/eel/eel-glib-extensions.h
@@ -56,9 +56,6 @@ GList * eel_g_list_partition (GList *
/* List functions for lists of g_free'able objects. */
void eel_g_list_free_deep (GList *list);
-void eel_g_list_free_deep_custom (GList *list,
- GFunc element_free_func,
- gpointer user_data);
/* List functions for lists of C strings. */
gboolean eel_g_str_list_equal (GList *str_list_a,