From: Uri Simchoni Date: Fri, 10 Nov 2017 19:38:41 +0000 (+0200) Subject: smbd: remove dptr_init_search_op() X-Git-Tag: tevent-0.9.34~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d9e8ff87b1c0e7e495ebbfb230a3f0ac7c57285;p=thirdparty%2Fsamba.git smbd: remove dptr_init_search_op() This function is now not being used. Signed-off-by: Uri Simchoni Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 19e29640118..6621b4ee387 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -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. ****************************************************************************/ diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index c85a6cccd5b..fe376404709 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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,