s3: VFS: vfs_unityed_media: Remove rmdir_fn. No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 21:01:55 +0000 (14:01 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 10 Oct 2019 06:09:40 +0000 (06:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_unityed_media.c

index 7ea02d41c89d6d65ef3620b43d626c1ba61d0ac4..48ff7e0d5d03175703e394b61655e75767aa104b 100644 (file)
@@ -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 */