s3: VFS: vfs_ceph: Remove rmdir_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 21:44:08 +0000 (14:44 -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_ceph.c

index 6c21005125e0068e5fdab8ca10f3f9e38fceaf9a..6295d032d1071d0151a572faac63a110fa6ef687 100644 (file)
@@ -397,17 +397,6 @@ static int cephwrap_mkdirat(struct vfs_handle_struct *handle,
        return WRAP_RETURN(result);
 }
 
-static int cephwrap_rmdir(struct vfs_handle_struct *handle,
-                       const struct smb_filename *smb_fname)
-{
-       int result;
-
-       DBG_DEBUG("[CEPH] rmdir(%p, %s)\n", handle, smb_fname->base_name);
-       result = ceph_rmdir(handle->data, smb_fname->base_name);
-       DBG_DEBUG("[CEPH] rmdir(...) = %d\n", result);
-       WRAP_RETURN(result);
-}
-
 static int cephwrap_closedir(struct vfs_handle_struct *handle, DIR *dirp)
 {
        int result;
@@ -1442,7 +1431,6 @@ static struct vfs_fn_pointers ceph_fns = {
        .telldir_fn = cephwrap_telldir,
        .rewind_dir_fn = cephwrap_rewinddir,
        .mkdirat_fn = cephwrap_mkdirat,
-       .rmdir_fn = cephwrap_rmdir,
        .closedir_fn = cephwrap_closedir,
 
        /* File operations */