aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp62
1 files changed, 0 insertions, 62 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 4514da6041..e07ed1a961 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -517,65 +517,3 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
return 0;
}
-
-static void debugHelper(char *buf, bool caret = true) {
-#ifndef _WIN32_WCE
- if (caret)
- printf("%s\n", buf);
- else
- printf("%s", buf);
-#endif
-
-#if defined( USE_WINDBG )
- if (caret)
- strcat(buf, "\n");
-#if defined( _WIN32_WCE )
- TCHAR buf_unicode[1024];
- MultiByteToWideChar(CP_ACP, 0, buf, strlen(buf) + 1, buf_unicode, sizeof(buf_unicode));
- OutputDebugString(buf_unicode);
-#else
- OutputDebugString(buf);
-#endif
-#endif
-
- fflush(stdout);
-}
-
-void CDECL debug(int level, const char *s, ...) {
- char buf[STRINGBUFLEN];
- va_list va;
-
- if (level > gDebugLevel)
- return;
-
- va_start(va, s);
- vsnprintf(buf, STRINGBUFLEN, s, va);
- va_end(va);
-
- debugHelper(buf);
-}
-
-void CDECL debugN(int level, const char *s, ...) {
- char buf[STRINGBUFLEN];
- va_list va;
-
- if (level > gDebugLevel)
- return;
-
- va_start(va, s);
- vsnprintf(buf, STRINGBUFLEN, s, va);
- va_end(va);
-
- debugHelper(buf, false);
-}
-
-void CDECL debug(const char *s, ...) {
- char buf[STRINGBUFLEN];
- va_list va;
-
- va_start(va, s);
- vsnprintf(buf, STRINGBUFLEN, s, va);
- va_end(va);
-
- debugHelper(buf);
-}