From 2a3a35adc4e1b7a3195033b072917abbb97a9f4e Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Tue, 28 Feb 2023 08:24:20 +0100 Subject: gdaemonfile: Remove dead code The file_transfer function contains a statement ensuring that the operation fails when files are on different mounts. But this statement is never reached. This case is correctly handled inside the create_proxy_for_file2 functio. Let's remove the dead code. --- client/gdaemonfile.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'client') diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c index 39847ddf..ac8f19d7 100644 --- a/client/gdaemonfile.c +++ b/client/gdaemonfile.c @@ -2713,15 +2713,6 @@ file_transfer (GFile *source, return FALSE; } - if (!native_transfer && local_path == NULL) - { - /* This will cause the fallback code to be involved */ - g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, - _("Operation not supported, files on different mounts")); - return FALSE; - - } - if (send_progress) obj_path = g_strdup_printf ("/org/gtk/vfs/callback/%p", &obj_path); else -- cgit v1.2.1