]> granicus.if.org Git - apache/commitdiff
Remove some old APIs. These were left around for legacy modules. Since
authorRyan Bloom <rbb@apache.org>
Sat, 5 Aug 2000 17:32:08 +0000 (17:32 +0000)
committerRyan Bloom <rbb@apache.org>
Sat, 5 Aug 2000 17:32:08 +0000 (17:32 +0000)
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

include/http_log.h
server/log.c

index b8f0cc5852330b6fefe2442778abd368829c5eaa..e98e006832cf30adbb07a3282be48b8dcc6d3ab9 100644 (file)
@@ -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;
 
index ff8c16273dfe6674ba5d69b2e55384a62d7a04a2..f3a2323f0f5a08cb4491594f09d38914dcd3bb15 100644 (file)
@@ -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];