From 5f9212dd8479887da15659c7f277839d6115a46d Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Thu, 19 May 2022 11:59:54 -0700 Subject: Common/LogManager: Remove old printf-style logging functions --- Source/Core/Common/Logging/LogManager.cpp | 34 ------------------------------- 1 file changed, 34 deletions(-) (limited to 'Source/Core/Common/Logging/LogManager.cpp') diff --git a/Source/Core/Common/Logging/LogManager.cpp b/Source/Core/Common/Logging/LogManager.cpp index bed3a183e4..ab795d372a 100644 --- a/Source/Core/Common/Logging/LogManager.cpp +++ b/Source/Core/Common/Logging/LogManager.cpp @@ -62,40 +62,6 @@ private: bool m_enable; }; -void GenericLog(LogLevel level, LogType type, const char* file, int line, const char* fmt, ...) -{ - auto* instance = LogManager::GetInstance(); - if (instance == nullptr) - return; - - if (!instance->IsEnabled(type, level)) - return; - - va_list args; - va_start(args, fmt); - char message[MAX_MSGLEN]; - CharArrayFromFormatV(message, MAX_MSGLEN, fmt, args); - va_end(args); - - instance->Log(level, type, file, line, message); -} - -void GenericLogV(LogLevel level, LogType type, const char* file, int line, const char* fmt, - va_list args) -{ - auto* instance = LogManager::GetInstance(); - if (instance == nullptr) - return; - - if (!instance->IsEnabled(type, level)) - return; - - char message[MAX_MSGLEN]; - CharArrayFromFormatV(message, MAX_MSGLEN, fmt, args); - - instance->Log(level, type, file, line, message); -} - void GenericLogFmtImpl(LogLevel level, LogType type, const char* file, int line, fmt::string_view format, const fmt::format_args& args) { -- cgit v1.2.3