From ae28488fb0447d1e3135d5f9569a633fe75c4661 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Oct 2019 14:52:18 -0700 Subject: [PATCH] s3: VFS: vfs_media_harmony: Remove rmdir_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_media_harmony.c | 36 ----------------------------- 1 file changed, 36 deletions(-) diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index c64b4cdf557..4541d8157bc 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -1082,41 +1082,6 @@ out: return status; } -/* - * Success: return 0 - * Failure: set errno, return -1 - */ -static int mh_rmdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - int status; - struct smb_filename *clientFname = NULL; - const char *path = smb_fname->base_name; - - DEBUG(MH_INFO_DEBUG, ("Entering with path '%s'\n", path)); - - if (!is_in_media_files(path)) - { - status = SMB_VFS_NEXT_RMDIR(handle, smb_fname); - goto out; - } - - status = alloc_get_client_smb_fname(handle, - talloc_tos(), - smb_fname, - &clientFname); - if (status != 0) { - goto err; - } - - status = SMB_VFS_NEXT_RMDIR(handle, clientFname); -err: - TALLOC_FREE(clientFname); -out: - DEBUG(MH_INFO_DEBUG, ("Leaving with path '%s'\n", path)); - return status; -} - /* * Success: return 0 * Failure: set errno, return -1 @@ -2329,7 +2294,6 @@ static struct vfs_fn_pointers vfs_mh_fns = { .telldir_fn = mh_telldir, .rewind_dir_fn = mh_rewinddir, .mkdirat_fn = mh_mkdirat, - .rmdir_fn = mh_rmdir, .closedir_fn = mh_closedir, /* File operations */ -- 2.47.3