summaryrefslogtreecommitdiff
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-06-12 11:21:41 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 12:45:45 +0200
commit352dbdd570c3bd64ddcf0d4c7473107ad3de622e (patch)
tree3bf942ac58380acc01aacda719507b9bd3a375be /src/debug.cpp
parent55a11710a6c0f7942f3947711f2050c34782c39d (diff)
downloadopenttd-352dbdd570c3bd64ddcf0d4c7473107ad3de622e.tar.xz
Cleanup: remove old DEBUG macro and debug function
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index cfcb0ee8b..84e6068a3 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -144,24 +144,6 @@ void debug_print(const char *dbg, const char *buf)
}
/**
- * Output a debug line.
- * @note Do not call directly, use the #DEBUG macro instead.
- * @param dbg Debug category.
- * @param format Text string a la printf, with optional arguments.
- */
-void CDECL debug(const char *dbg, const char *format, ...)
-{
- char buf[1024];
-
- va_list va;
- va_start(va, format);
- vseprintf(buf, lastof(buf), format, va);
- va_end(va);
-
- debug_print(dbg, buf);
-}
-
-/**
* Set debugging levels by parsing the text in \a s.
* For setting individual levels a string like \c "net=3,grf=6" should be used.
* If the string starts with a number, the number is used as global debugging level.