From c9792462f6e2a6ca3328f50d330db1eee752c765 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 23 May 2012 09:01:46 +0000 Subject: [PATCH] Remove unused module_enabled --- src/log.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/log.c b/src/log.c index d80974c..f254466 100644 --- a/src/log.c +++ b/src/log.c @@ -456,13 +456,11 @@ void yaz_log(int level, const char *fmt, ...) /* Modules without log level should log (as before) */ /* if there exists a log level as well this should be respected. */ if (is_module_log(level)) { - int module_log_level, module_no, module_enabled; + int module_log_level, module_no; module_log_level = level & YLOG_LEVEL_MASK; module_no = level &(~( module_logs-1)); if (!(module_no & l_level)) return ; - if (!module_enabled) - return ; if (module_log_level != 0) { if (!(module_log_level & l_level)) return; -- 1.7.10.4