[gvfs] smb: Remove some redundant code
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] smb: Remove some redundant code
- Date: Mon, 3 Oct 2016 14:48:31 +0000 (UTC)
commit daeed4670708b92dd28ec089de732bec8258ef7a
Author: Ondrej Holy <oholy redhat com>
Date: Wed Sep 14 14:29:28 2016 +0200
smb: Remove some redundant code
Remove some ancient comments, dead code, or duplicated code.
https://bugzilla.gnome.org/show_bug.cgi?id=771483
daemon/gvfsbackendsmb.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index 7a38a0a..1460861 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -552,7 +552,6 @@ do_mount (GVfsBackend *backend,
smbc_setFunctionRemoveCachedServer (smb_context, remove_cached_server);
smbc_setFunctionPurgeCachedServers (smb_context, purge_cached);
- /* FIXME: is strdup() still needed here? -- removed */
if (op_backend->default_workgroup != NULL)
smbc_setWorkgroup (smb_context, op_backend->default_workgroup);
@@ -565,11 +564,6 @@ do_mount (GVfsBackend *backend,
op_backend->user != NULL);
smbc_setOptionNoAutoAnonymousLogin (smb_context, TRUE);
-
-#if 0
- smbc_setOptionDebugToStderr (smb_context, 1);
-#endif
-
if (!smbc_init_context (smb_context))
{
g_vfs_job_failed (G_VFS_JOB (job),
@@ -671,8 +665,6 @@ do_mount (GVfsBackend *backend,
if (res != 0)
{
- op_backend->mount_source = NULL;
-
if (op_backend->mount_cancelled)
g_vfs_job_failed (G_VFS_JOB (job),
G_IO_ERROR, G_IO_ERROR_FAILED_HANDLED,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]