From a9be0e26b5a1f11f0e5e868d0a14044faed3ac7c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Jun 2021 13:44:06 -0700 Subject: [PATCH] s3: smbd: Remove dptr_normal_ReadDirName(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/dir.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 6dfc541c634..2622ca55fa5 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -404,35 +404,6 @@ void dptr_set_priv(struct dptr_struct *dptr) dptr->priv = true; } -#if 0 -/**************************************************************************** - Return the next visible file name, skipping veto'd and invisible files. -****************************************************************************/ - -static const char *dptr_normal_ReadDirName(struct dptr_struct *dptr, - long *poffset, SMB_STRUCT_STAT *pst, - char **ptalloced) -{ - /* Normal search for the next file. */ - const char *name; - char *talloced = NULL; - - while ((name = ReadDirName(dptr->dir_hnd, poffset, pst, &talloced)) - != NULL) { - if (is_visible_file(dptr->conn, - dptr->dir_hnd, - name, - pst, - true)) { - *ptalloced = talloced; - return name; - } - TALLOC_FREE(talloced); - } - return NULL; -} -#endif - /**************************************************************************** Return the next visible file name, skipping veto'd and invisible files. ****************************************************************************/ -- 2.47.3