From: Jeremy Allison Date: Wed, 18 Sep 2019 16:22:38 +0000 (-0700) Subject: s3: VFS: vfs_recycle: Remove unlink_fn. No longer used. X-Git-Tag: talloc-2.3.1~580 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55df30d5a6345b333ee312d43b548ae50107471f;p=thirdparty%2Fsamba.git s3: VFS: vfs_recycle: Remove unlink_fn. No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c index 371f7a3adc9..4a21bbf0a88 100644 --- a/source3/modules/vfs_recycle.c +++ b/source3/modules/vfs_recycle.c @@ -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 };