From 73670f6ded11e007e6f9448950fb5bf924875a5e Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Thu, 12 Oct 2000 04:20:36 +0000 Subject: [PATCH] These functions aren't used by any module, and they don't make any sense with the bucket design, so they need to go away. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86559 13f79535-47bb-0310-9956-ffa450edef68 --- include/util_script.h | 14 -------------- server/util_script.c | 12 ------------ 2 files changed, 26 deletions(-) diff --git a/include/util_script.h b/include/util_script.h index 8795c18ac2..92573d3544 100644 --- a/include/util_script.h +++ b/include/util_script.h @@ -124,20 +124,6 @@ API_EXPORT(void) ap_add_common_vars(request_rec *r); */ API_EXPORT(int) ap_scan_script_header_err(request_rec *r, apr_file_t *f, char *buffer); -/** - * Read headers output from a script, ensuring that the output is valid. If - * the output is valid, then the headers are added to the headers out of the - * current request - * @param r The current request - * @param f The BUFF to read from - * @param buffer Empty when calling the function. On output, if there was an - * error, the string that cause the error is stored here. - * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise - * @deffunc int ap_scan_script_header_err_buff(request_rec *r, BUFF *f, char *buffer) - */ -API_EXPORT(int) ap_scan_script_header_err_buff(request_rec *r, BUFF *f, - char *buffer); - /** * Read headers strings from a script, ensuring that the output is valid. If * the output is valid, then the headers are added to the headers out of the diff --git a/server/util_script.c b/server/util_script.c index 8134dd15f0..a988f932a5 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -595,18 +595,6 @@ API_EXPORT(int) ap_scan_script_header_err(request_rec *r, apr_file_t *f, return ap_scan_script_header_err_core(r, buffer, getsfunc_FILE, f); } -static int getsfunc_BUFF(char *w, int len, void *fb) -{ - return ap_bgets(w, len, (BUFF *) fb) > 0; -} - -API_EXPORT(int) ap_scan_script_header_err_buff(request_rec *r, BUFF *fb, - char *buffer) -{ - return ap_scan_script_header_err_core(r, buffer, getsfunc_BUFF, fb); -} - - struct vastrs { va_list args; int arg; -- 2.50.1