]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove now unused dptr_activecnum().
authorJeremy Allison <jra@samba.org>
Tue, 16 Jul 2019 16:44:25 +0000 (09:44 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 6 Aug 2019 14:23:34 +0000 (14:23 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c
source3/smbd/proto.h

index 5af0629e7d7192e13ef146e80e926ea63bbefef4..25a7a2e165b4a77a055a49f0b0a3cb15a9d25612 100644 (file)
@@ -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
index 252122cdf70d7ac3979e6ae95993eccc0a6e9732..2efabf3e41a7bbcc686c028b9a70755ca371500c 100644 (file)
@@ -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,