From: Ryan Bloom Date: Sat, 5 Aug 2000 17:32:08 +0000 (+0000) Subject: Remove some old APIs. These were left around for legacy modules. Since X-Git-Tag: APACHE_2_0_ALPHA_6~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0356da996c399a8a3940c4695533ba798f5afd1a;p=apache Remove some old APIs. These were left around for legacy modules. Since we have broken all modules anyway, this is a good time to cleanup a bit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85999 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_log.h b/include/http_log.h index b8f0cc5852..e98e006832 100644 --- a/include/http_log.h +++ b/include/http_log.h @@ -215,16 +215,6 @@ API_EXPORT(void) ap_error_log2stderr (server_rec *); * @param fname The name of the file to log to */ void ap_log_pid (apr_pool_t *p, const char *fname); -/* These are for legacy code, new code should use ap_log_error, - * or ap_log_rerror. - */ -API_EXPORT(void) ap_log_error_old(const char *err, server_rec *s); -API_EXPORT(void) ap_log_unixerr(const char *routine, const char *file, - const char *msg, server_rec *s); -API_EXPORT(void) ap_log_printf(const server_rec *s, const char *fmt, ...) - __attribute__((format(printf,2,3))); -API_EXPORT(void) ap_log_reason(const char *reason, const char *fname, - request_rec *r); typedef struct piped_log piped_log; diff --git a/server/log.c b/server/log.c index ff8c16273d..f3a2323f0f 100644 --- a/server/log.c +++ b/server/log.c @@ -532,35 +532,6 @@ void ap_log_pid(apr_pool_t *p, const char *fname) saved_pid = mypid; } -API_EXPORT(void) ap_log_error_old(const char *err, server_rec *s) -{ - ap_log_error(APLOG_MARK, APLOG_ERR, errno, s, "%s", err); -} - -API_EXPORT(void) ap_log_unixerr(const char *routine, const char *file, - const char *msg, server_rec *s) -{ - ap_log_error(file, 0, APLOG_ERR, errno, s, "%s", msg); -} - -API_EXPORT(void) ap_log_printf(const server_rec *s, const char *fmt, ...) -{ - va_list args; - - va_start(args, fmt); - log_error_core(APLOG_MARK, APLOG_ERR, errno, s, NULL, NULL, fmt, args); - va_end(args); -} - -API_EXPORT(void) ap_log_reason(const char *reason, const char *file, request_rec *r) -{ - ap_log_error(APLOG_MARK, APLOG_ERR, errno, r->server, - "access to %s failed for %s, reason: %s", - file, - ap_get_remote_host(r->connection, r->per_dir_config, REMOTE_NAME), - reason); -} - API_EXPORT(void) ap_log_assert(const char *szExp, const char *szFile, int nLine) { char time_str[AP_CTIME_LEN];