]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: lib: Remove file_pload_send().
authorJeremy Allison <jra@samba.org>
Sat, 18 May 2019 18:32:05 +0000 (11:32 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Jun 2019 10:22:09 +0000 (10:22 +0000)
No longer used.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13964

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit d5c363d65d771c792523f2f3e526c90514212fc2)

source3/lib/util_file.c
source3/lib/util_file.h

index 6ee2d58b53203bc8c5d5e519e982b14fb8deb319..770609d0b111815c8e5b2613e8b725f42e59106b 100644 (file)
@@ -36,35 +36,6 @@ struct file_pload_state {
 static int file_pload_state_destructor(struct file_pload_state *s);
 static void file_pload_readable(struct tevent_req *subreq);
 
-struct tevent_req *file_pload_send(TALLOC_CTX *mem_ctx,
-                                  struct tevent_context *ev,
-                                  const char *syscmd, size_t maxsize)
-{
-       struct tevent_req *req, *subreq;
-       struct file_pload_state *state;
-
-       req = tevent_req_create(mem_ctx, &state, struct file_pload_state);
-       if (req == NULL) {
-               return NULL;
-       }
-       state->ev = ev;
-       state->maxsize = maxsize;
-
-       state->fd = sys_popen(syscmd);
-       if (state->fd == -1) {
-               tevent_req_error(req, errno);
-               return tevent_req_post(req, ev);
-       }
-       talloc_set_destructor(state, file_pload_state_destructor);
-
-       subreq = wait_for_read_send(state, state->ev, state->fd, false);
-       if (tevent_req_nomem(subreq, req)) {
-               return tevent_req_post(req, ev);
-       }
-       tevent_req_set_callback(subreq, file_pload_readable, req);
-       return req;
-}
-
 struct tevent_req *file_ploadv_send(TALLOC_CTX *mem_ctx,
                                   struct tevent_context *ev,
                                   char * const argl[], size_t maxsize)
index fe2782fd349c22463489d072c23063902a0bad2e..97fcf89996d3f898379e19b08654bd2607aeb2c4 100644 (file)
@@ -23,9 +23,6 @@
 #include "replace.h"
 #include <tevent.h>
 
-struct tevent_req *file_pload_send(TALLOC_CTX *mem_ctx,
-                                  struct tevent_context *ev,
-                                  const char *syscmd, size_t maxsize);
 struct tevent_req *file_ploadv_send(TALLOC_CTX *mem_ctx,
                                   struct tevent_context *ev,
                                   char * const argl[], size_t maxsize);