remove debug compiling option

This commit is contained in:
lxsang 2021-10-08 22:53:08 +02:00
parent 0daef95c25
commit c7e9d2a579
3 changed files with 7 additions and 24 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -48,22 +48,6 @@ THE SOFTWARE.
// #include <time.h>
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