summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-31 14:44:04 +0100
committerVolker Lendecke <vl@samba.org>2009-01-31 17:50:18 +0100
commit8b480b52cef385f555ca90c804132472e2173129 (patch)
tree71816eb1da43eeb933c16baa6589525dc1f1530b /source3
parent2d5ec28b3b065940cefdd491ad7c8fd1a58c3a5c (diff)
downloadsamba-8b480b52cef385f555ca90c804132472e2173129.tar.gz
samba-8b480b52cef385f555ca90c804132472e2173129.tar.bz2
samba-8b480b52cef385f555ca90c804132472e2173129.zip
Remove unused np_write sync wrapper
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c30
2 files changed, 0 insertions, 32 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index ca10b7097f..081225614f 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -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);
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index c844f6486e..813561bac4 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -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;