smbd: remove dptr_init_search_op()
authorUri Simchoni <uri@samba.org>
Fri, 10 Nov 2017 19:38:41 +0000 (21:38 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 11 Nov 2017 03:49:27 +0000 (04:49 +0100)
This function is now not being used.

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c
source3/smbd/proto.h

index 19e2964011869b1712f18fa8e410d51053026b51..6621b4ee3875a963581b531076b8f75aa4a20f4d 100644 (file)
@@ -886,14 +886,6 @@ bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, S
        return SearchDir(dptr->dir_hnd, name, poffset);
 }
 
-/****************************************************************************
- Initialize variables & state data at the beginning of all search SMB requests.
-****************************************************************************/
-void dptr_init_search_op(struct dptr_struct *dptr)
-{
-       SMB_VFS_INIT_SEARCH_OP(dptr->conn, dptr->dir_hnd->dir);
-}
-
 /****************************************************************************
  Map a native directory offset to a 32-bit cookie.
 ****************************************************************************/
index c85a6cccd5b02d555af336d3a636b5931a2e3a8a..fe3764047093704ad8c52fe8758b038ca086310e 100644 (file)
@@ -207,7 +207,6 @@ int dptr_dnum(struct dptr_struct *dptr);
 bool dptr_get_priv(struct dptr_struct *dptr);
 void dptr_set_priv(struct dptr_struct *dptr);
 bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst);
-void dptr_init_search_op(struct dptr_struct *dptr);
 bool dptr_fill(struct smbd_server_connection *sconn,
               char *buf1,unsigned int key);
 struct dptr_struct *dptr_fetch(struct smbd_server_connection *sconn,