From: Jeremy Allison Date: Wed, 17 Jul 2019 20:45:16 +0000 (-0700) Subject: s3: smbd: Remove dptr_fsp(). No longer used. X-Git-Tag: tdb-1.4.2~343 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5eebfc725136d1fdf2d6c9f66db59f24338f9c2;p=thirdparty%2Fsamba.git s3: smbd: Remove dptr_fsp(). 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 86fa95c38cd..003b2d92e19 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -170,22 +170,6 @@ uint16_t dptr_attr(struct smbd_server_connection *sconn, int key) return(0); } -/**************************************************************************** - Get the fsp stored in a dptr->dir_hnd. -****************************************************************************/ - -files_struct *dptr_fsp(struct smbd_server_connection *sconn, int key) -{ - struct dptr_struct *dptr = dptr_get(sconn, key); - if (dptr == NULL) { - return NULL; - } - if (dptr->dir_hnd == NULL) { - return NULL; - } - return dptr->dir_hnd->fsp; -} - /**************************************************************************** Close a dptr (internal func). ****************************************************************************/ diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index c1d6b32c06e..a07614f9969 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -183,7 +183,6 @@ bool init_dptrs(struct smbd_server_connection *sconn); const char *dptr_path(struct smbd_server_connection *sconn, int key); const char *dptr_wcard(struct smbd_server_connection *sconn, int key); uint16_t dptr_attr(struct smbd_server_connection *sconn, int key); -files_struct *dptr_fsp(struct smbd_server_connection *sconn, int key); void dptr_close(struct smbd_server_connection *sconn, int *key); void dptr_closecnum(connection_struct *conn); NTSTATUS dptr_create(connection_struct *conn,