summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-04-26 14:05:40 +0200
committerStefan Metzmacher <metze@samba.org>2012-04-27 08:31:38 +0200
commitb88d649e401078a74103a78205f2c324a86eaafb (patch)
tree22e4f76d272a7783656dc1dbdc83a25d1048cca7 /source3
parent8422ab26095dd5c8e618e6606c64ebe05753f809 (diff)
downloadsamba-b88d649e401078a74103a78205f2c324a86eaafb.tar.gz
samba-b88d649e401078a74103a78205f2c324a86eaafb.tar.bz2
samba-b88d649e401078a74103a78205f2c324a86eaafb.zip
s3:libsmb/cli_np_tstream: remove unused tstream_cli_np_existing()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cli_np_tstream.c26
-rw-r--r--source3/libsmb/cli_np_tstream.h8
2 files changed, 0 insertions, 34 deletions
diff --git a/source3/libsmb/cli_np_tstream.c b/source3/libsmb/cli_np_tstream.c
index 37fd68affd..7511c39586 100644
--- a/source3/libsmb/cli_np_tstream.c
+++ b/source3/libsmb/cli_np_tstream.c
@@ -1047,29 +1047,3 @@ static const struct tstream_context_ops tstream_cli_np_ops = {
.disconnect_send = tstream_cli_np_disconnect_send,
.disconnect_recv = tstream_cli_np_disconnect_recv,
};
-
-NTSTATUS _tstream_cli_np_existing(TALLOC_CTX *mem_ctx,
- struct cli_state *cli,
- uint16_t fnum,
- struct tstream_context **_stream,
- const char *location)
-{
- struct tstream_context *stream;
- struct tstream_cli_np *cli_nps;
-
- stream = tstream_context_create(mem_ctx,
- &tstream_cli_np_ops,
- &cli_nps,
- struct tstream_cli_np,
- location);
- if (!stream) {
- return NT_STATUS_NO_MEMORY;
- }
- ZERO_STRUCTP(cli_nps);
-
- cli_nps->cli = cli;
- cli_nps->fnum = fnum;
-
- *_stream = stream;
- return NT_STATUS_OK;
-}
diff --git a/source3/libsmb/cli_np_tstream.h b/source3/libsmb/cli_np_tstream.h
index b7def34c48..5f59d146d4 100644
--- a/source3/libsmb/cli_np_tstream.h
+++ b/source3/libsmb/cli_np_tstream.h
@@ -36,14 +36,6 @@ NTSTATUS _tstream_cli_np_open_recv(struct tevent_req *req,
#define tstream_cli_np_open_recv(req, mem_ctx, stream) \
_tstream_cli_np_open_recv(req, mem_ctx, stream, __location__)
-NTSTATUS _tstream_cli_np_existing(TALLOC_CTX *mem_ctx,
- struct cli_state *cli,
- uint16_t fnum,
- struct tstream_context **_stream,
- const char *location);
-#define tstream_cli_np_existing(mem_ctx, cli, npipe, stream) \
- _tstream_cli_np_existing(mem_ctx, cli, npipe, stream, __location__)
-
bool tstream_is_cli_np(struct tstream_context *stream);
NTSTATUS tstream_cli_np_use_trans(struct tstream_context *stream);