From d610339028443f74248aec4bb9b4caa62daa1ff4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 17 Sep 2013 07:19:42 +0200 Subject: s4:librpc/rpc: remove unused dcerpc_smb_tree() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/librpc/rpc/dcerpc.h | 1 - source4/librpc/rpc/dcerpc_smb.c | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h index 0a319d31ff..67059ac485 100644 --- a/source4/librpc/rpc/dcerpc.h +++ b/source4/librpc/rpc/dcerpc.h @@ -210,7 +210,6 @@ NTSTATUS dcerpc_bind_auth_schannel(TALLOC_CTX *tmp_ctx, uint8_t auth_level); struct tevent_context *dcerpc_event_context(struct dcerpc_pipe *p); NTSTATUS dcerpc_init(void); -struct smbcli_tree *dcerpc_smb_tree(struct dcecli_connection *c); struct composite_context *dcerpc_secondary_smb_send(struct dcecli_connection *c1, struct dcerpc_pipe *p2, const char *pipe_name); diff --git a/source4/librpc/rpc/dcerpc_smb.c b/source4/librpc/rpc/dcerpc_smb.c index c84896f4dc..a9903e5f92 100644 --- a/source4/librpc/rpc/dcerpc_smb.c +++ b/source4/librpc/rpc/dcerpc_smb.c @@ -583,21 +583,6 @@ _PUBLIC_ NTSTATUS dcerpc_pipe_open_smb(struct dcerpc_pipe *p, return dcerpc_pipe_open_smb_recv(ctx); } -/* - return the SMB tree used for a dcerpc over SMB pipe -*/ -_PUBLIC_ struct smbcli_tree *dcerpc_smb_tree(struct dcecli_connection *c) -{ - struct smb_private *smb; - - if (c->transport.transport != NCACN_NP) return NULL; - - smb = talloc_get_type(c->transport.private_data, struct smb_private); - if (!smb) return NULL; - - return smb->tree; -} - struct composite_context *dcerpc_secondary_smb_send(struct dcecli_connection *c1, struct dcerpc_pipe *p2, const char *pipe_name) -- cgit