From 23cc27c3ef08d59eca93043193f721cd18938f36 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Sat, 1 Nov 2014 20:23:46 -0400 Subject: [PATCH] print: Remove dprint() dprint() has no users, so it can be removed. Signed-off-by: Anna Schumaker --- DESIGN | 13 ------------- include/core/print.h | 21 +-------------------- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/DESIGN b/DESIGN index 4eff3a21..3c73e11c 100644 --- a/DESIGN +++ b/DESIGN @@ -22,19 +22,6 @@ Install: -Printing: - Sometimes text needs to be printed to the screen so users (or debuggers) - can trace what is going on. - -API: - void print(string fmt, ...); - void dprint(string fmt, ...); - Print text to the screen. The dprint() option will only only - be implemented when when CONFIG_DEBUG or CONFIG_TEST is enabled, - and will be an empty function otherwise. - - - Callbacks: Callbacks are used to notify a unit test or the gui that something in the backend has changed. The callbacks structure should be initialized diff --git a/include/core/print.h b/include/core/print.h index bb7d3479..7b21ea38 100644 --- a/include/core/print.h +++ b/include/core/print.h @@ -12,7 +12,7 @@ * Print a message to the console * * @param fmt Printf-style text format. - * @param ... Var-args to be printed. + * @param ... Var-args matching the specified format. */ inline void print(const char *fmt, ...) { @@ -23,23 +23,4 @@ inline void print(const char *fmt, ...) va_end(ap); } -#if defined(CONFIG_DEBUG) || defined(CONFIG_TEST) -inline void dprint(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - vprintf(fmt, ap); - va_end(ap); -} -#else /* ! (CONFIG_DEBUG || CONFIG_TEST) */ -/** - * Print a message to the console (only if debugging is enabled). - * - * @param fmt Printf-style text format. - * @param ... Var-args to be printed. - */ -inline void dprint(const char *fmt, ...) {} -#endif /* CONFIG_DEBUG */ - #endif /* OCARINA_CORE_PRINT_H */