Remove now unused cli_get_pipe_idx
authorVolker Lendecke <vl@samba.org>
Sun, 20 Jul 2008 16:46:13 +0000 (18:46 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 21 Jul 2008 12:36:29 +0000 (14:36 +0200)
(This used to be commit e02a550527307f7b300d3fe13631e2d29dbc5e06)

source3/include/proto.h
source3/rpc_client/cli_pipe.c

index 90b79c2fa49f6aedcf0132d7e6d90bf00c95620c..aab9b253d88762dfc1bd9f4147cca1f29ab8b8f7 100644 (file)
@@ -7914,7 +7914,6 @@ const char *cli_get_pipe_name(int pipe_idx);
 const char *cli_get_pipe_name_from_iface(TALLOC_CTX *mem_ctx,
                                         struct cli_state *cli,
                                         const struct ndr_syntax_id *interface);
-int cli_get_pipe_idx(const RPC_IFACE *syntax);
 void init_rpc_hdr(RPC_HDR *hdr, enum RPC_PKT_TYPE pkt_type, uint8 flags,
                                uint32 call_id, int data_len, int auth_len);
 bool smb_io_rpc_hdr(const char *desc,  RPC_HDR *rpc, prs_struct *ps, int depth);
index b969b83e4fc205923ad7c61550656d144856b07d..3f27a89fc40ae650d54cfb15394d40cab5add910 100644 (file)
@@ -106,21 +106,6 @@ const char *cli_get_pipe_name_from_iface(TALLOC_CTX *mem_ctx,
        return NULL;
 }
 
-/****************************************************************************
- Return the pipe idx from the syntax.
- ****************************************************************************/
-int cli_get_pipe_idx(const RPC_IFACE *syntax)
-{
-       int i;
-       for (i = 0; pipe_names[i].client_pipe; i++) {
-               if (ndr_syntax_id_equal(pipe_names[i].abstr_syntax, syntax)) {
-                       return i;
-               }
-       }
-
-       return -1;
-}
-
 /********************************************************************
  Map internal value to wire value.
  ********************************************************************/