summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-03-05 07:43:13 +0100
committerVictor Kareh <[email protected]>2019-03-07 10:41:44 -0500
commit33adc930ad133b0d169edbf619c3692da47f9c2f (patch)
tree6d0e99875398bd401d4ae4fdb49c4a3eb199da17 /eel
parent808318f42f097349a0e0b6d45b0e075e5b920f19 (diff)
downloadcaja-33adc930ad133b0d169edbf619c3692da47f9c2f.tar.bz2
caja-33adc930ad133b0d169edbf619c3692da47f9c2f.tar.xz
eel: remove g_str_list_copy
GNOME/nautilus@61e2aff Replace eel_g_str_list_copy(Glist *list) with g_list_copy_deep (list, (GCopyFunc) g_strdup, NULL)
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-glib-extensions.c20
-rw-r--r--eel/eel-glib-extensions.h1
2 files changed, 0 insertions, 21 deletions
diff --git a/eel/eel-glib-extensions.c b/eel/eel-glib-extensions.c
index 189536c6..3d8ba1a5 100644
--- a/eel/eel-glib-extensions.c
+++ b/eel/eel-glib-extensions.c
@@ -325,26 +325,6 @@ eel_g_str_list_equal (GList *list_a, GList *list_b)
}
/**
- * eel_g_str_list_copy
- *
- * @list: List of strings and/or NULLs to copy.
- * Return value: Deep copy of @list.
- **/
-GList *
-eel_g_str_list_copy (GList *list)
-{
- GList *node, *result;
-
- result = NULL;
-
- for (node = g_list_last (list); node != NULL; node = node->prev)
- {
- result = g_list_prepend (result, g_strdup (node->data));
- }
- return result;
-}
-
-/**
* eel_g_str_list_alphabetize
*
* Sort a list of strings using locale-sensitive rules.
diff --git a/eel/eel-glib-extensions.h b/eel/eel-glib-extensions.h
index f50f80b9..a8b45ff7 100644
--- a/eel/eel-glib-extensions.h
+++ b/eel/eel-glib-extensions.h
@@ -60,7 +60,6 @@ void eel_g_list_free_deep (GList *
/* List functions for lists of C strings. */
gboolean eel_g_str_list_equal (GList *str_list_a,
GList *str_list_b);
-GList * eel_g_str_list_copy (GList *str_list);
GList * eel_g_str_list_alphabetize (GList *str_list);
int eel_g_str_list_index (GList *str_list,
const char *str);