From f7c1e7d002c21eeaf0b5c06d3527ede532f5cd51 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 6 Jun 2011 11:05:23 +0200 Subject: COMMON: Remove default implementation of OSystem::logMessage --- common/system.cpp | 19 ------------------- common/system.h | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) (limited to 'common') diff --git a/common/system.cpp b/common/system.cpp index fae7a3ef34..1645a6be10 100644 --- a/common/system.cpp +++ b/common/system.cpp @@ -21,11 +21,6 @@ */ #define FORBIDDEN_SYMBOL_EXCEPTION_exit -#define FORBIDDEN_SYMBOL_EXCEPTION_FILE -#define FORBIDDEN_SYMBOL_EXCEPTION_fputs -#define FORBIDDEN_SYMBOL_EXCEPTION_fflush -#define FORBIDDEN_SYMBOL_EXCEPTION_stdout -#define FORBIDDEN_SYMBOL_EXCEPTION_stderr #include "common/system.h" #include "common/events.h" @@ -136,20 +131,6 @@ Common::String OSystem::getDefaultConfigFileName() { return "scummvm.ini"; } -void OSystem::logMessage(LogMessageType::Type type, const char *message) { -#if !defined(__PLAYSTATION2__) && !defined(__DS__) - FILE *output = 0; - - if (type == LogMessageType::kInfo || type == LogMessageType::kDebug) - output = stdout; - else - output = stderr; - - fputs(message, output); - fflush(output); -#endif -} - Common::String OSystem::getSystemLanguage() const { return "en_US"; } diff --git a/common/system.h b/common/system.h index d26bc593aa..3e740ff0c1 100644 --- a/common/system.h +++ b/common/system.h @@ -1101,7 +1101,7 @@ public: * @param type the type of the message * @param message the message itself */ - virtual void logMessage(LogMessageType::Type type, const char *message); + virtual void logMessage(LogMessageType::Type type, const char *message) = 0; /** * Open the log file in a way that allows the user to review it, -- cgit v1.2.3