From 867e7659adacb350b2fb5c20447affd5ef54db25 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 12 Jul 2016 14:29:42 +0300 Subject: libcaja-private: drop some more unused code --- libcaja-private/caja-dnd.c | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) (limited to 'libcaja-private/caja-dnd.c') diff --git a/libcaja-private/caja-dnd.c b/libcaja-private/caja-dnd.c index af4c44e9..382d1764 100644 --- a/libcaja-private/caja-dnd.c +++ b/libcaja-private/caja-dnd.c @@ -121,19 +121,6 @@ caja_drag_destroy_selection_list (GList *list) g_list_free (list); } -char ** -caja_drag_uri_array_from_selection_list (const GList *selection_list) -{ - GList *uri_list; - char **uris; - - uri_list = caja_drag_uri_list_from_selection_list (selection_list); - uris = caja_drag_uri_array_from_list (uri_list); - g_list_free_full (uri_list, g_free); - - return uris; -} - GList * caja_drag_uri_list_from_selection_list (const GList *selection_list) { @@ -154,28 +141,6 @@ caja_drag_uri_list_from_selection_list (const GList *selection_list) return g_list_reverse (uri_list); } -char ** -caja_drag_uri_array_from_list (const GList *uri_list) -{ - const GList *l; - char **uris; - int i; - - if (uri_list == NULL) - { - return NULL; - } - - uris = g_new0 (char *, g_list_length ((GList *) uri_list)); - for (i = 0, l = uri_list; l != NULL; l = l->next) - { - uris[i++] = g_strdup ((char *) l->data); - } - uris[i] = NULL; - - return uris; -} - GList * caja_drag_uri_list_from_array (const char **uris) { @@ -343,17 +308,6 @@ caja_drag_items_local (const char *target_uri_string, ((CajaDragSelectionItem *)selection_list->data)->uri); } -gboolean -caja_drag_items_in_trash (const GList *selection_list) -{ - /* check if the first item on the list is in trash. - * FIXME: - * we should really test each item but that would be slow for large selections - * and currently dropped items can only be from the same container - */ - return eel_uri_is_trash (((CajaDragSelectionItem *)selection_list->data)->uri); -} - gboolean caja_drag_items_on_desktop (const GList *selection_list) { -- cgit v1.2.1