From: Volker Lendecke Date: Tue, 20 Jan 2009 14:26:06 +0000 (+0100) Subject: Remove some unused code X-Git-Tag: samba-4.0.0alpha7~461 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=520f88143bd894f6aea38bb9adae5a1165a8720e Remove some unused code --- diff --git a/source3/include/proto.h b/source3/include/proto.h index e3d93494ffe..4efcbba6a8a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -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, diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index cbb6a8f4bf4..07534762303 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -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. ****************************************************************************/ diff --git a/source3/smbd/server.c b/source3/smbd/server.c index a884914839d..42c37f20562 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1008,9 +1008,6 @@ static bool init_structs(void ) file_init(); - /* for RPC pipes */ - init_rpc_pipe_hnd(); - init_dptrs(); if (!secrets_init())