Remove the unused Ref logging level
This commit is contained in:
+5
-1
@@ -976,7 +976,11 @@ void alc_initconfig(void)
|
||||
if(auto loglevel = al::getenv("ALSOFT_LOGLEVEL"))
|
||||
{
|
||||
long lvl = strtol(loglevel->c_str(), nullptr, 0);
|
||||
if(lvl >= static_cast<long>(LogLevel::Disable) && lvl <= static_cast<long>(LogLevel::Ref))
|
||||
if(lvl >= static_cast<long>(LogLevel::Trace))
|
||||
gLogLevel = LogLevel::Trace;
|
||||
else if(lvl <= static_cast<long>(LogLevel::Disable))
|
||||
gLogLevel = LogLevel::Disable;
|
||||
else
|
||||
gLogLevel = static_cast<LogLevel>(lvl);
|
||||
}
|
||||
|
||||
|
||||
@@ -356,7 +356,6 @@ void al_print(LogLevel level, FILE *logfile, const char *fmt, ...)
|
||||
case LogLevel::Warning: return ANDROID_LOG_WARN;
|
||||
case LogLevel::Error: return ANDROID_LOG_ERROR;
|
||||
/* Should not happen. */
|
||||
case LogLevel::Ref:
|
||||
case LogLevel::Disable:
|
||||
break;
|
||||
}
|
||||
|
||||
+1
-2
@@ -10,8 +10,7 @@ enum class LogLevel {
|
||||
Disable,
|
||||
Error,
|
||||
Warning,
|
||||
Trace,
|
||||
Ref
|
||||
Trace
|
||||
};
|
||||
extern LogLevel gLogLevel;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user