From d74e5245a29c700cc788f94bcadf4ab62bb606cc Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 3 Aug 2009 18:39:29 +0200 Subject: _UNUSED_PARAMETER_ entfernt Namen unbenutzte Parameter auskommentieren --- src/Core/LogManager.cpp | 6 +++--- src/Core/LogManager.h | 8 +++----- src/Core/ThreadManager.h | 2 -- 3 files changed, 6 insertions(+), 10 deletions(-) (limited to 'src/Core') diff --git a/src/Core/LogManager.cpp b/src/Core/LogManager.cpp index 4f000e9..d5928f9 100644 --- a/src/Core/LogManager.cpp +++ b/src/Core/LogManager.cpp @@ -27,7 +27,7 @@ namespace Mad { namespace Core { -void LogManager::ConsoleLogger::logMessage(MessageCategory category _UNUSED_PARAMETER_, MessageLevel level, time_t timestamp _UNUSED_PARAMETER_, const std::string &message) { +void LogManager::ConsoleLogger::logMessage(MessageCategory /*category*/, MessageLevel level, time_t /*timestamp*/, const std::string &message) { if(level != CRITICAL) {// Critical messages are printed to cerr directly, so don't print them a second time cerrLock.lock(); std::cerr << message << std::endl; @@ -35,13 +35,13 @@ void LogManager::ConsoleLogger::logMessage(MessageCategory category _UNUSED_PARA } } -void LogManager::ConsoleLogger::logMessage(MessageCategory category _UNUSED_PARAMETER_, MessageLevel, time_t timestamp _UNUSED_PARAMETER_, const std::string &message, const std::string &messageSource) { +void LogManager::ConsoleLogger::logMessage(MessageCategory /*category*/, MessageLevel /*level*/, time_t /*timestamp*/, const std::string &message, const std::string &messageSource) { cerrLock.lock(); std::cerr << message << " from " << messageSource << std::endl; cerrLock.unlock(); } -void LogManager::ConsoleLogger::logMessageDirect(MessageCategory category _UNUSED_PARAMETER_, MessageLevel level _UNUSED_PARAMETER_, time_t timestamp _UNUSED_PARAMETER_, const std::string &message) { +void LogManager::ConsoleLogger::logMessageDirect(MessageCategory /*category*/, MessageLevel /*level*/, time_t /*timestamp*/, const std::string &message) { cerrLock.lock(); std::cerr << message << std::endl; cerrLock.unlock(); diff --git a/src/Core/LogManager.h b/src/Core/LogManager.h index 7d3b434..d3233f0 100644 --- a/src/Core/LogManager.h +++ b/src/Core/LogManager.h @@ -20,8 +20,6 @@ #ifndef MAD_CORE_LOGMANAGER_H_ #define MAD_CORE_LOGMANAGER_H_ -#include - #include "Configurable.h" #include "Logger.h" #include "RemoteLogger.h" @@ -68,13 +66,13 @@ class LogManager : public Configurable { boost::mutex cerrLock; protected: - virtual void logMessage(MessageCategory category _UNUSED_PARAMETER_, MessageLevel level, time_t timestamp _UNUSED_PARAMETER_, const std::string &message); - virtual void logMessage(MessageCategory category _UNUSED_PARAMETER_, MessageLevel, time_t timestamp _UNUSED_PARAMETER_, const std::string &message, const std::string &messageSource); + virtual void logMessage(MessageCategory category, MessageLevel level, time_t timestamp, const std::string &message); + virtual void logMessage(MessageCategory category, MessageLevel, time_t timestamp, const std::string &message, const std::string &messageSource); public: ConsoleLogger() {} - void logMessageDirect(MessageCategory category _UNUSED_PARAMETER_, MessageLevel level _UNUSED_PARAMETER_, time_t timestamp _UNUSED_PARAMETER_, const std::string &message); + void logMessageDirect(MessageCategory category, MessageLevel level, time_t timestamp, const std::string &message); }; diff --git a/src/Core/ThreadManager.h b/src/Core/ThreadManager.h index 08e35ba..ab5113c 100644 --- a/src/Core/ThreadManager.h +++ b/src/Core/ThreadManager.h @@ -20,8 +20,6 @@ #ifndef MAD_CORE_THREADMANAGER_H_ #define MAD_CORE_THREADMANAGER_H_ -#include - #include #include -- cgit v1.2.3