summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-17 07:04:55 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-10-17 08:48:53 +1300
commitecb31505878be358d1101a42106eda35bb48b4c7 (patch)
tree71c7c917bc715e8363b4a2563da2cf2890527682 /source4
parent3337a68e32f8453a8b6706fedd56b78740fa665f (diff)
downloadsamba-ecb31505878be358d1101a42106eda35bb48b4c7.tar.gz
samba-ecb31505878be358d1101a42106eda35bb48b4c7.tar.bz2
samba-ecb31505878be358d1101a42106eda35bb48b4c7.zip
s4:librpc/rpc: remove unused dcerpc_smb_fnum()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/dcerpc.h1
-rw-r--r--source4/librpc/rpc/dcerpc_smb.c15
2 files changed, 0 insertions, 16 deletions
diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h
index ef830865e8..c1e6445ba3 100644
--- a/source4/librpc/rpc/dcerpc.h
+++ b/source4/librpc/rpc/dcerpc.h
@@ -211,7 +211,6 @@ NTSTATUS dcerpc_bind_auth_schannel(TALLOC_CTX *tmp_ctx,
struct tevent_context *dcerpc_event_context(struct dcerpc_pipe *p);
NTSTATUS dcerpc_init(void);
struct smbcli_tree *dcerpc_smb_tree(struct dcecli_connection *c);
-uint16_t dcerpc_smb_fnum(struct dcecli_connection *c);
NTSTATUS dcerpc_secondary_context(struct dcerpc_pipe *p,
struct dcerpc_pipe **pp2,
const struct ndr_interface_table *table);
diff --git a/source4/librpc/rpc/dcerpc_smb.c b/source4/librpc/rpc/dcerpc_smb.c
index e02631e2b1..71faeb4b3f 100644
--- a/source4/librpc/rpc/dcerpc_smb.c
+++ b/source4/librpc/rpc/dcerpc_smb.c
@@ -597,18 +597,3 @@ _PUBLIC_ struct smbcli_tree *dcerpc_smb_tree(struct dcecli_connection *c)
return smb->tree;
}
-
-/*
- return the SMB fnum used for a dcerpc over SMB pipe (hack for torture operations)
-*/
-_PUBLIC_ uint16_t dcerpc_smb_fnum(struct dcecli_connection *c)
-{
- struct smb_private *smb;
-
- if (c->transport.transport != NCACN_NP) return 0;
-
- smb = talloc_get_type(c->transport.private_data, struct smb_private);
- if (!smb) return 0;
-
- return smb->fnum;
-}