s3:libsmb/cli_np_tstream: remove unused tstream_cli_np_existing()
authorStefan Metzmacher <metze@samba.org>
Thu, 26 Apr 2012 12:05:40 +0000 (14:05 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 27 Apr 2012 06:31:38 +0000 (08:31 +0200)
metze

source3/libsmb/cli_np_tstream.c
source3/libsmb/cli_np_tstream.h

index 37fd68affdd7a6839fff08826f0e40500e26f817..7511c3958640d35af5033a78a8b94f95d1a645f1 100644 (file)
@@ -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;
-}
index b7def34c48a3b65d582fdafb9ac367e1fbdd5d55..5f59d146d4f697f5a1e18974688ba70a4d2b6322 100644 (file)
@@ -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);