remove unused dbg_printf function
authorMatthias Braun <matze@braunis.de>
Thu, 17 Jun 2010 08:50:10 +0000 (08:50 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 17 Jun 2010 08:50:10 +0000 (08:50 +0000)
[r27629]

driver/firm_opt.c
main.c

index f76e99c..8530d00 100644 (file)
 #include "firm_timing.h"
 #include "ast2firm.h"
 
-#if defined(_DEBUG) || defined(FIRM_DEBUG)
-#define DBG(x)  dbg_printf x
-#else
-#define DBG(x) ((void)0)
-#endif /* _DEBUG || FIRM_DEBUG */
-
 static ir_timer_t *t_vcg_dump;
 static ir_timer_t *t_verify;
 static ir_timer_t *t_all_opt;
diff --git a/main.c b/main.c
index 2ca0828..5ad031d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -169,24 +169,6 @@ struct file_list_entry_t {
 
 static file_list_entry_t *temp_files;
 
-#if defined(_DEBUG) || defined(FIRM_DEBUG)
-/**
- * Debug printf implementation.
- *
- * @param fmt  printf style format parameter
- */
-void dbg_printf(const char *fmt, ...)
-{
-       va_list list;
-
-       if (firm_dump.debug_print) {
-               va_start(list, fmt);
-               vprintf(fmt, list);
-               va_end(list);
-       }  /* if */
-}
-#endif /* defined(_DEBUG) || defined(FIRM_DEBUG) */
-
 static void initialize_firm(void)
 {
        firm_early_init();