chore(log): remove un needed getFilterName methods

This commit is contained in:
sithlord48 2026-05-10 11:26:02 -04:00 committed by Nick Bolton
parent acf865fa11
commit a3f97e55e0
3 changed files with 1 additions and 21 deletions

View file

@ -146,20 +146,6 @@ Log *Log::getInstance()
return s_log;
}
const char *Log::getFilterName() const
{
return getFilterName(getFilter());
}
const char *Log::getFilterName(LogLevel::Level level) const
{
const auto levelIndex = static_cast<int>(level);
if (levelIndex < 0) {
return "Message";
}
return g_priority[levelIndex];
}
void Log::print(const char *file, int line, const char *fmt, ...)
{
const int initBufferSize = 1024;

View file

@ -106,12 +106,6 @@ public:
//! Get the minimum priority level.
LogLevel::Level getFilter() const;
//! Get the filter name of the current filter level.
const char *getFilterName() const;
//! Get the filter name of a specified filter level.
const char *getFilterName(LogLevel::Level level) const;
//! Get the singleton instance of the log
static Log *getInstance();

View file

@ -136,7 +136,7 @@ void App::loggingFilterWarning() const
if ((CLOG->getFilter() > CLOG->getConsoleMaxLevel()) && (Settings::value(Settings::Log::ToFile).toBool())) {
LOG_WARN(
"log messages above %s are NOT sent to console (use file logging)",
CLOG->getFilterName(CLOG->getConsoleMaxLevel())
qPrintable(LogLevel::toOption(CLOG->getConsoleMaxLevel()))
);
}
}