diff --git a/include/re_dbg.h b/include/re_dbg.h index 3c5b816f0..8ab1e9370 100644 --- a/include/re_dbg.h +++ b/include/re_dbg.h @@ -117,10 +117,6 @@ void dbg_close(void); int dbg_logfile_set(const char *name); void dbg_handler_set(dbg_print_h *ph, void *arg); void dbg_printf(int level, const char *fmt, ...); -void dbg_noprintf(const char *fmt, ...); -void dbg_warning(const char *fmt, ...); -void dbg_notice(const char *fmt, ...); -void dbg_info(const char *fmt, ...); const char *dbg_level_str(int level); #ifdef __cplusplus diff --git a/src/dbg/dbg.c b/src/dbg/dbg.c index 57ee7019c..e7a19ea84 100644 --- a/src/dbg/dbg.c +++ b/src/dbg/dbg.c @@ -235,74 +235,6 @@ void dbg_printf(int level, const char *fmt, ...) } -/** - * Print a formatted debug message to /dev/null - * - * @param fmt Formatted string - */ -void dbg_noprintf(const char *fmt, ...) -{ - (void)fmt; -} - - -/** - * Print a formatted warning message - * - * @param fmt Formatted string - */ -void dbg_warning(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - dbg_vprintf(DBG_WARNING, fmt, ap); - va_end(ap); - - va_start(ap, fmt); - dbg_fmt_vprintf(DBG_WARNING, fmt, ap); - va_end(ap); -} - - -/** - * Print a formatted notice message - * - * @param fmt Formatted string - */ -void dbg_notice(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - dbg_vprintf(DBG_NOTICE, fmt, ap); - va_end(ap); - - va_start(ap, fmt); - dbg_fmt_vprintf(DBG_NOTICE, fmt, ap); - va_end(ap); -} - - -/** - * Print a formatted info message - * - * @param fmt Formatted string - */ -void dbg_info(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - dbg_vprintf(DBG_INFO, fmt, ap); - va_end(ap); - - va_start(ap, fmt); - dbg_fmt_vprintf(DBG_INFO, fmt, ap); - va_end(ap); -} - - /** * Get the name of the debug level *