From: Jeremy Allison Date: Fri, 4 Jun 2021 20:44:06 +0000 (-0700) Subject: s3: smbd: Remove dptr_normal_ReadDirName(). X-Git-Tag: tevent-0.11.0~561 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9be0e26b5a1f11f0e5e868d0a14044faed3ac7c;p=thirdparty%2Fsamba.git s3: smbd: Remove dptr_normal_ReadDirName(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- 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. ****************************************************************************/