From 77ad9599131016961bd6522c831fb7b21beb4660 Mon Sep 17 00:00:00 2001 From: derselbst Date: Sun, 22 Oct 2017 14:43:35 +0200 Subject: [PATCH] remove unused fluid_debug() --- src/utils/fluid_sys.c | 25 ------------------------- src/utils/fluid_sys.h | 17 ----------------- 2 files changed, 42 deletions(-) diff --git a/src/utils/fluid_sys.c b/src/utils/fluid_sys.c index 6791201d..3d90b0dd 100644 --- a/src/utils/fluid_sys.c +++ b/src/utils/fluid_sys.c @@ -83,31 +83,6 @@ void fluid_sys_config() } -unsigned int fluid_debug_flags = 0; - -#if DEBUG -/* - * fluid_debug - */ -int fluid_debug(int level, char * fmt, ...) -{ - if (fluid_debug_flags & level) { - fluid_log_function_t fun; - va_list args; - - va_start (args, fmt); - FLUID_VSNPRINTF (fluid_errbuf, sizeof (fluid_errbuf), fmt, args); - va_end (args); - - fun = fluid_log_function[FLUID_DBG]; - if (fun != NULL) { - (*fun)(level, fluid_errbuf, fluid_log_user_data[FLUID_DBG]); - } - } - return 0; -} -#endif - /** * Installs a new log function for a specified log level. * @param level Log level to install handler for. diff --git a/src/utils/fluid_sys.h b/src/utils/fluid_sys.h index c68ae61f..b75b6b8f 100644 --- a/src/utils/fluid_sys.h +++ b/src/utils/fluid_sys.h @@ -73,23 +73,6 @@ void fluid_time_config(void); char *fluid_strtok (char **str, char *delim); -/** - - Additional debugging system, separate from the log system. This - allows to print selected debug messages of a specific subsystem. - */ - -extern unsigned int fluid_debug_flags; - -#if DEBUG - -int fluid_debug(int level, char * fmt, ...); - -#else -#define fluid_debug -#endif - - #if defined(__OS2__) #define INCL_DOS #include