summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2013-09-13 11:15:18 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-10-17 08:48:50 +1300
commit1974dbe30c83726a5fce86cbdb31b4375461d30b (patch)
tree44cb343e4ce7bb90a3a82e58941164af86903e36 /source3
parentbd678cdd3b503c013f8384b063b7ba3934b9e4dd (diff)
downloadsamba-1974dbe30c83726a5fce86cbdb31b4375461d30b.tar.gz
samba-1974dbe30c83726a5fce86cbdb31b4375461d30b.tar.bz2
samba-1974dbe30c83726a5fce86cbdb31b4375461d30b.zip
s3:rpc_client: remove unused rpc_pipe_np_smb_conn()
Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/rpc_transport.h1
-rw-r--r--source3/rpc_client/rpc_transport_tstream.c19
2 files changed, 0 insertions, 20 deletions
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);
-}