Remove now unused cli_get_pipe_name
authorVolker Lendecke <vl@samba.org>
Sun, 20 Jul 2008 16:48:44 +0000 (18:48 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 21 Jul 2008 12:36:30 +0000 (14:36 +0200)
(This used to be commit ed4a447103cd9ada59222d79f5784818fe033209)

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

index aab9b253d88762dfc1bd9f4147cca1f29ab8b8f7..720ba3f91fcf9296fed6c55a044679792d147512 100644 (file)
@@ -7910,7 +7910,6 @@ bool prs_data_blob(prs_struct *prs, DATA_BLOB *blob, TALLOC_CTX *mem_ctx);
 
 /* The following definitions come from rpc_parse/parse_rpc.c  */
 
-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);
index 3f27a89fc40ae650d54cfb15394d40cab5add910..7781ea6921c4b03f555cd971636cb89db86e752f 100644 (file)
@@ -78,14 +78,9 @@ static const struct pipe_id_info {
 };
 
 /****************************************************************************
- Return the pipe name from the index.
+ Return the pipe name from the interface.
  ****************************************************************************/
 
-const char *cli_get_pipe_name(int pipe_idx)
-{
-       return &pipe_names[pipe_idx].client_pipe[5];
-}
-
 const char *cli_get_pipe_name_from_iface(TALLOC_CTX *mem_ctx,
                                         struct cli_state *cli,
                                         const struct ndr_syntax_id *interface)
@@ -94,7 +89,7 @@ const char *cli_get_pipe_name_from_iface(TALLOC_CTX *mem_ctx,
        for (i = 0; pipe_names[i].client_pipe; i++) {
                if (ndr_syntax_id_equal(pipe_names[i].abstr_syntax,
                                        interface)) {
-                       return cli_get_pipe_name(i);
+                       return &pipe_names[i].client_pipe[5];
                }
        }