s3:rpc_client: remove unused rpc_pipe_np_smb_conn()
authorGregor Beck <gbeck@sernet.de>
Fri, 13 Sep 2013 09:15:18 +0000 (11:15 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 Oct 2013 19:48:50 +0000 (08:48 +1300)
Signed-off-by: Gregor Beck <gbeck@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpc_client/rpc_transport.h
source3/rpc_client/rpc_transport_tstream.c

index 72e76097320ae1a6cf89a028001c5fdf52a57826..ad2210646fa77269ec6e7b834b1958f1a62028e3 100644 (file)
@@ -102,6 +102,5 @@ NTSTATUS rpc_transport_sock_init(TALLOC_CTX *mem_ctx, int fd,
 NTSTATUS rpc_transport_tstream_init(TALLOC_CTX *mem_ctx,
                                struct tstream_context **stream,
                                struct rpc_cli_transport **presult);
-struct cli_state *rpc_pipe_np_smb_conn(struct rpc_pipe_client *p);
 
 #endif /* _RPC_CLIENT_RPC_TRANSPORT_H_ */
index ec37c7d5cab95feb4cb6090fe2e99fe27ac9ae09..dd0de081d1be28265244da46e3f59d8cba7dfff0 100644 (file)
@@ -585,22 +585,3 @@ NTSTATUS rpc_transport_tstream_init(TALLOC_CTX *mem_ctx,
        *presult = result;
        return NT_STATUS_OK;
 }
-
-struct cli_state *rpc_pipe_np_smb_conn(struct rpc_pipe_client *p)
-{
-       struct rpc_tstream_state *transp =
-               talloc_get_type_abort(p->transport->priv,
-               struct rpc_tstream_state);
-       bool ok;
-
-       ok = rpccli_is_connected(p);
-       if (!ok) {
-               return NULL;
-       }
-
-       if (!tstream_is_cli_np(transp->stream)) {
-               return NULL;
-       }
-
-       return tstream_cli_np_get_cli_state(transp->stream);
-}