From c7e9d2a5796576895017546898a991055115fd44 Mon Sep 17 00:00:00 2001 From: lxsang Date: Fri, 8 Oct 2021 22:53:08 +0200 Subject: [PATCH] remove debug compiling option --- configure.ac | 14 +++++++------- httpd.c | 1 - lib/utils.c | 16 ---------------- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/configure.ac b/configure.ac index c2fa3c2..acea77d 100644 --- a/configure.ac +++ b/configure.ac @@ -70,13 +70,13 @@ AC_DEFINE([_GNU_SOURCE], [1],[Use GNU source]) # AC_CANONICAL_HOST is needed to access the 'host_os' variable # debug option -AC_ARG_ENABLE([debug], - [ --enable-debug Turn on debugging], - [case "${enableval}" in - yes) AC_DEFINE([DEBUG], [1],[Enable debug]) ;; - no) ;; - *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; - esac],[debug=false]) +#AC_ARG_ENABLE([debug], +# [ --enable-debug Turn on debugging], +# [case "${enableval}" in +# yes) AC_DEFINE([DEBUG], [1],[Enable debug]) ;; +# no) ;; +# *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; +# esac],[debug=false]) AC_CANONICAL_HOST build_linux=no diff --git a/httpd.c b/httpd.c index 1b9691f..a9c7e84 100644 --- a/httpd.c +++ b/httpd.c @@ -309,7 +309,6 @@ void antd_scheduler_destroy_data(void *data) int antd_scheduler_validate_data(antd_task_t *task) { config_t *conf = config(); - LOG("Use server configured scheduler timeout %d", conf->scheduler_timeout); return !(difftime(time(NULL), task->access_time) > conf->scheduler_timeout); } diff --git a/lib/utils.c b/lib/utils.c index fc5d270..278d634 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -48,22 +48,6 @@ THE SOFTWARE. // #include - -void error_log(const char* fmt, ...) -{ - UNUSED(fmt); - return; -} -#ifdef DEBUG -void server_log(const char* fmt, ...) -{ - UNUSED(fmt); - return; -} -#endif - - - /** * Trim a string by a character on both ends * @param str The target string