From 64854db8ac270acf16fa98f1b6ce26d19885795d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 16 Sep 2019 18:04:06 -0700 Subject: [PATCH] s3: VFS: vfs_media_harmony: Remove unlink_fn. No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_media_harmony.c | 36 ----------------------------- 1 file changed, 36 deletions(-) diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index 77496ef374f..c64b4cdf557 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -1509,41 +1509,6 @@ out: return status; } -/* - * Success: return 0 - * Failure: set errno, return -1 - */ -static int mh_unlink(vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - int status; - struct smb_filename *clientFname; - TALLOC_CTX *ctx; - - DEBUG(MH_INFO_DEBUG, ("Entering mh_unlink\n")); - if (!is_in_media_files(smb_fname->base_name)) - { - status = SMB_VFS_NEXT_UNLINK(handle, smb_fname); - goto out; - } - - clientFname = NULL; - ctx = talloc_tos(); - - if ((status = alloc_get_client_smb_fname(handle, ctx, - smb_fname, - &clientFname))) - { - goto err; - } - - status = SMB_VFS_NEXT_UNLINK(handle, clientFname); -err: - TALLOC_FREE(clientFname); -out: - return status; -} - /* * Success: return 0 * Failure: set errno, return -1 @@ -2375,7 +2340,6 @@ static struct vfs_fn_pointers vfs_mh_fns = { .stat_fn = mh_stat, .lstat_fn = mh_lstat, .fstat_fn = mh_fstat, - .unlink_fn = mh_unlink, .unlinkat_fn = mh_unlinkat, .chmod_fn = mh_chmod, .chown_fn = mh_chown, -- 2.47.3