From 5a7aaa8060fdcfc2e066f1ef859634bc115699db Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 16 Jul 2019 09:44:25 -0700 Subject: [PATCH] s3: smbd: Remove now unused dptr_activecnum(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/dir.c | 17 ----------------- source3/smbd/proto.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 5af0629e7d7..25a7a2e165b 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -293,23 +293,6 @@ void dptr_closecnum(connection_struct *conn) } } -/**************************************************************************** - Are there any SMB1 searches active on this connection struct ? -****************************************************************************/ - -bool dptr_activecnum(const struct smbd_server_connection *sconn, - const struct connection_struct *conn) -{ - const struct dptr_struct *dptr; - - for(dptr = sconn->searches.dirptrs; dptr; dptr = dptr->next) { - if (dptr->conn == conn) { - return true; - } - } - return false; -} - /**************************************************************************** Create a new dir ptr. If the flag old_handle is true then we must allocate from the bitmap range 0 - 255 as old SMBsearch directory handles are only diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 252122cdf70..2efabf3e41a 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -186,8 +186,6 @@ 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); -bool dptr_activecnum(const struct smbd_server_connection *sconn, - const struct connection_struct *conn); NTSTATUS dptr_create(connection_struct *conn, struct smb_request *req, files_struct *fsp, -- 2.47.3