summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Logging/LogManager.cpp
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-05-19 17:55:17 -0400
committerGitHub <noreply@github.com>2022-05-19 17:55:17 -0400
commita98d0367d8f9f719531cdbfd781688cf3c544dd3 (patch)
tree5c460876b5f230c3d4a799dd96cdd8c7fef99da3 /Source/Core/Common/Logging/LogManager.cpp
parent2aa0ae097b54ccb582e33ed7fa129031f381a21c (diff)
parent5f9212dd8479887da15659c7f277839d6115a46d (diff)
Merge pull request #10677 from Pokechu22/no-printf-log
Remove printf-style logging
Diffstat (limited to 'Source/Core/Common/Logging/LogManager.cpp')
-rw-r--r--Source/Core/Common/Logging/LogManager.cpp34
1 files changed, 0 insertions, 34 deletions
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)
{