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

index c64b4cdf557e6e1c6f2305d978ed1e4f0a0f0bc9..4541d8157bcb145a94450702e3794a9df100c76c 100644 (file)
@@ -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 */