s3: VFS: vfs_recycle: Remove unlink_fn. No longer used.
authorJeremy Allison <jra@samba.org>
Wed, 18 Sep 2019 16:22:38 +0000 (09:22 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 26 Sep 2019 17:20:51 +0000 (17:20 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_recycle.c

index 371f7a3adc9f3b37f58a7595ba6242c0c9a5c5ca..4a21bbf0a88f3b5f5963cb254d106f344d7d619a 100644 (file)
@@ -35,9 +35,6 @@ static int vfs_recycle_debug_level = DBGC_VFS;
 #undef DBGC_CLASS
 #define DBGC_CLASS vfs_recycle_debug_level
  
-static int recycle_unlink(vfs_handle_struct *handle,
-                         const struct smb_filename *smb_fname);
-
 static const char *recycle_repository(vfs_handle_struct *handle)
 {
        const char *tmp_str = NULL;
@@ -710,15 +707,6 @@ done:
        return rc;
 }
 
-static int recycle_unlink(vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname)
-{
-       return recycle_unlink_internal(handle,
-                               handle->conn->cwd_fsp,
-                               smb_fname,
-                               0);
-}
-
 static int recycle_unlinkat(vfs_handle_struct *handle,
                struct files_struct *dirfsp,
                const struct smb_filename *smb_fname,
@@ -742,7 +730,6 @@ static int recycle_unlinkat(vfs_handle_struct *handle,
 }
 
 static struct vfs_fn_pointers vfs_recycle_fns = {
-       .unlink_fn = recycle_unlink,
        .unlinkat_fn = recycle_unlinkat
 };