diff options
author | Ondrej Holy <oholy@redhat.com> | 2023-02-28 08:24:20 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2023-02-28 08:24:38 +0000 |
commit | 2a3a35adc4e1b7a3195033b072917abbb97a9f4e (patch) | |
tree | 59cc19d4244f1314d31c50741778cdb5b0792bc5 /client/gdaemonfile.c | |
parent | 007bb9da909b5d66cbb04f7062587d8cc7d5a474 (diff) | |
download | gvfs-2a3a35adc4e1b7a3195033b072917abbb97a9f4e.tar.gz |
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.
Diffstat (limited to 'client/gdaemonfile.c')
-rw-r--r-- | client/gdaemonfile.c | 9 |
1 files changed, 0 insertions, 9 deletions
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 |