From 1974dbe30c83726a5fce86cbdb31b4375461d30b Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Fri, 13 Sep 2013 11:15:18 +0200 Subject: s3:rpc_client: remove unused rpc_pipe_np_smb_conn() Signed-off-by: Gregor Beck Reviewed-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/rpc_client/rpc_transport.h | 1 - source3/rpc_client/rpc_transport_tstream.c | 19 ------------------- 2 files changed, 20 deletions(-) (limited to 'source3') diff --git a/source3/rpc_client/rpc_transport.h b/source3/rpc_client/rpc_transport.h index 72e7609732..ad2210646f 100644 --- a/source3/rpc_client/rpc_transport.h +++ b/source3/rpc_client/rpc_transport.h @@ -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_ */ diff --git a/source3/rpc_client/rpc_transport_tstream.c b/source3/rpc_client/rpc_transport_tstream.c index ec37c7d5ca..dd0de081d1 100644 --- a/source3/rpc_client/rpc_transport_tstream.c +++ b/source3/rpc_client/rpc_transport_tstream.c @@ -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); -} -- cgit