]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Remove unused np_write sync wrapper
authorVolker Lendecke <vl@samba.org>
Sat, 31 Jan 2009 13:44:04 +0000 (14:44 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 31 Jan 2009 16:50:18 +0000 (17:50 +0100)
source3/include/proto.h
source3/rpc_server/srv_pipe_hnd.c

index ca10b7097fe9b5c4005be0b79ea480a7744dc694..081225614f14a6a838de54794fb71ddea2e245b0 100644 (file)
@@ -6318,8 +6318,6 @@ struct async_req *np_write_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
                                struct fake_file_handle *handle,
                                const uint8_t *data, size_t len);
 NTSTATUS np_write_recv(struct async_req *req, ssize_t *nwritten);
-NTSTATUS np_write(struct fake_file_handle *handle, const uint8_t *data,
-                 size_t len, ssize_t *nwritten);
 struct async_req *np_read_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
                               struct fake_file_handle *handle,
                               uint8_t *data, size_t len);
index c844f6486ed640657815a869468b8162bad2e389..813561bac4cd08f659e3835cf960c41da0834ce7 100644 (file)
@@ -1200,36 +1200,6 @@ NTSTATUS np_write_recv(struct async_req *req, ssize_t *pnwritten)
        return NT_STATUS_OK;
 }
 
-NTSTATUS np_write(struct fake_file_handle *handle, const uint8_t *data,
-                 size_t len, ssize_t *nwritten)
-{
-       TALLOC_CTX *frame = talloc_stackframe();
-       struct event_context *ev;
-       struct async_req *req;
-       NTSTATUS status;
-
-       ev = event_context_init(frame);
-       if (ev == NULL) {
-               status = NT_STATUS_NO_MEMORY;
-               goto fail;
-       }
-
-       req = np_write_send(frame, ev, handle, data, len);
-       if (req == NULL) {
-               status = NT_STATUS_NO_MEMORY;
-               goto fail;
-       }
-
-       while (req->state < ASYNC_REQ_DONE) {
-               event_loop_once(ev);
-       }
-
-       status = np_write_recv(req, nwritten);
- fail:
-       TALLOC_FREE(frame);
-       return status;
-}
-
 struct np_read_state {
        ssize_t nread;
        bool is_data_outstanding;