From: Jeremy Allison Date: Fri, 4 Oct 2019 21:01:55 +0000 (-0700) Subject: s3: VFS: vfs_unityed_media: Remove rmdir_fn. No longer used. X-Git-Tag: talloc-2.3.1~414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44f9adc155fc59836580e1d9bc4820d547082fbd;p=thirdparty%2Fsamba.git s3: VFS: vfs_unityed_media: Remove rmdir_fn. No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index 7ea02d41c89..48ff7e0d5d0 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -822,34 +822,6 @@ err: return status; } -static int um_rmdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - int status; - const char *path = smb_fname->base_name; - struct smb_filename *client_fname = NULL; - - DEBUG(10, ("Entering with path '%s'\n", path)); - - if (!is_in_media_files(path)) { - return SMB_VFS_NEXT_RMDIR(handle, smb_fname); - } - - status = alloc_get_client_smb_fname(handle, - talloc_tos(), - smb_fname, - &client_fname); - if (status != 0) { - goto err; - } - - status = SMB_VFS_NEXT_RMDIR(handle, client_fname); -err: - TALLOC_FREE(client_fname); - DEBUG(10, ("Leaving with path '%s'\n", path)); - return status; -} - static int um_closedir(vfs_handle_struct *handle, DIR *dirp) { @@ -1932,7 +1904,6 @@ static struct vfs_fn_pointers vfs_um_fns = { .telldir_fn = um_telldir, .rewind_dir_fn = um_rewinddir, .mkdirat_fn = um_mkdirat, - .rmdir_fn = um_rmdir, .closedir_fn = um_closedir, /* File operations */