]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove dptr_normal_ReadDirName().
authorJeremy Allison <jra@samba.org>
Fri, 4 Jun 2021 20:44:06 +0000 (13:44 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
No longer used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c

index 6dfc541c634a2a9d55dca944741765c28d84718a..2622ca55fa508a80d845e3ef0b3b70d25dfe3a4b 100644 (file)
@@ -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.
 ****************************************************************************/