Remove some unused code
authorVolker Lendecke <vl@samba.org>
Tue, 20 Jan 2009 14:26:06 +0000 (15:26 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Jan 2009 15:41:32 +0000 (16:41 +0100)
source3/include/proto.h
source3/rpc_server/srv_pipe_hnd.c
source3/smbd/server.c

index e3d93494ffe9e05c57691e014669841d845b87bf..4efcbba6a8aae3936bc6a66ffb53fdef7d2db6af 100644 (file)
@@ -6223,7 +6223,6 @@ bool api_pipe_request(pipes_struct *p);
 
 pipes_struct *get_first_internal_pipe(void);
 pipes_struct *get_next_internal_pipe(pipes_struct *p);
-void init_rpc_pipe_hnd(void);
 
 bool fsp_is_np(struct files_struct *fsp);
 NTSTATUS np_open(TALLOC_CTX *mem_ctx, const char *name,
index cbb6a8f4bf47332470b860c32898fe6a74051d62..075347623034931a84a33fc07d613c3ff1ba3977 100644 (file)
@@ -28,7 +28,6 @@
 static int pipes_open;
 
 static pipes_struct *InternalPipes;
-static struct bitmap *bmap;
 
 /* TODO
  * the following prototypes are declared here to avoid
@@ -56,18 +55,6 @@ pipes_struct *get_next_internal_pipe(pipes_struct *p)
        return p->next;
 }
 
-/****************************************************************************
- Initialise pipe handle states.
-****************************************************************************/
-
-void init_rpc_pipe_hnd(void)
-{
-       bmap = bitmap_allocate(MAX_OPEN_PIPES);
-       if (!bmap) {
-               exit_server("out of memory in init_rpc_pipe_hnd");
-       }
-}
-
 /****************************************************************************
  Initialise an outgoing packet.
 ****************************************************************************/
index a884914839db9fec5a807305e7fc7cb60342d22e..42c37f205622e9c3c42e5c9411a658602a535629 100644 (file)
@@ -1008,9 +1008,6 @@ static bool init_structs(void )
 
        file_init();
 
-       /* for RPC pipes */
-       init_rpc_pipe_hnd();
-
        init_dptrs();
 
        if (!secrets_init())