From 02bc0ce9d22117b464bae47c5d09c45b4f7c2272 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 18 May 2019 11:10:40 -0700 Subject: [PATCH] s3: lib: Remove file_lines_pload(). No longer used. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13964 Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/lib/util_file.c | 14 -------------- source3/lib/util_file.h | 3 --- 2 files changed, 17 deletions(-) diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c index eeb749be36c..8f91f7d00fb 100644 --- a/source3/lib/util_file.c +++ b/source3/lib/util_file.c @@ -157,20 +157,6 @@ int file_pload_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, must be freed with TALLOC_FREE. **/ -char **file_lines_pload(TALLOC_CTX *mem_ctx, const char *syscmd, - int *numlines) -{ - char *p; - size_t size; - - p = file_pload(syscmd, &size); - if (!p) { - return NULL; - } - - return file_lines_parse(p, size, numlines, mem_ctx); -} - char **file_lines_ploadv(TALLOC_CTX *mem_ctx, char * const argl[], int *numlines) diff --git a/source3/lib/util_file.h b/source3/lib/util_file.h index 85bcf06f38c..9cf00aae893 100644 --- a/source3/lib/util_file.h +++ b/source3/lib/util_file.h @@ -28,9 +28,6 @@ struct tevent_req *file_pload_send(TALLOC_CTX *mem_ctx, const char *syscmd, size_t maxsize); int file_pload_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, uint8_t **buf); - -char **file_lines_pload(TALLOC_CTX *mem_ctx, const char *syscmd, - int *numlines); char **file_lines_ploadv(TALLOC_CTX *mem_ctx, char * const argl[], int *numlines); -- 2.47.3