Remove the unused Ref logging level

This commit is contained in:
Chris Robinson
2020-09-28 16:14:20 -07:00
parent f02bc1354d
commit b5eccf424b
3 changed files with 6 additions and 4 deletions
+5 -1
View File
@@ -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);
}
-1
View File
@@ -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
View File
@@ -10,8 +10,7 @@ enum class LogLevel {
Disable,
Error,
Warning,
Trace,
Ref
Trace
};
extern LogLevel gLogLevel;