diff options
author | Benjamin Otte <otte@redhat.com> | 2022-12-14 02:15:12 +0100 |
---|---|---|
committer | Corey Berla <corey@berla.me> | 2022-12-13 19:35:26 -1000 |
commit | 6d14a24b944b030a3ff6a2d43ffb0e1c6f7ed95d (patch) | |
tree | 0b8a65354eaadd020b7db2c056a5efeb0e17485f | |
parent | 7877152917c57038a55d68ae907d627020aed4c0 (diff) | |
download | nautilus-6d14a24b944b030a3ff6a2d43ffb0e1c6f7ed95d.tar.gz |
file-utilities: Remove unused function
In gtk3 Nautilus used to construct the uri-list.
nautilus_uri_to_native_uri() was used to ensure that apps that didn't
have gvfs access could access the dropped file. Now gtk4 constructs
the uri-list, so a similar process is handled on the gtk side.
Related: #2632
-rw-r--r-- | src/nautilus-file-utilities.c | 20 | ||||
-rw-r--r-- | src/nautilus-file-utilities.h | 2 |
2 files changed, 0 insertions, 22 deletions
diff --git a/src/nautilus-file-utilities.c b/src/nautilus-file-utilities.c index 6043a11e9..6c2919a04 100644 --- a/src/nautilus-file-utilities.c +++ b/src/nautilus-file-utilities.c @@ -1418,26 +1418,6 @@ nautilus_file_can_rename_files (GList *files) return TRUE; } -/* Try to get a native file:// URI instead of any other GVFS - * scheme, for interoperability with apps only handling file:// URIs. - */ -gchar * -nautilus_uri_to_native_uri (const gchar *uri) -{ - g_autoptr (GFile) file = NULL; - g_autofree gchar *path = NULL; - - file = g_file_new_for_uri (uri); - path = g_file_get_path (file); - - if (path != NULL) - { - return g_filename_to_uri (path, NULL, NULL); - } - - return NULL; -} - NautilusQueryRecursive location_settings_search_get_recursive (void) { diff --git a/src/nautilus-file-utilities.h b/src/nautilus-file-utilities.h index e87c02417..f8e4d9dbd 100644 --- a/src/nautilus-file-utilities.h +++ b/src/nautilus-file-utilities.h @@ -137,8 +137,6 @@ gboolean nautilus_file_can_rename_files (GList *files); GList * nautilus_file_list_from_uri_list (GList *uris); -gchar * nautilus_uri_to_native_uri (const gchar *uri); - NautilusQueryRecursive location_settings_search_get_recursive (void); NautilusQueryRecursive location_settings_search_get_recursive_for_location (GFile *location); |