From 01179c2d9070fd292973ad7db7d58b438dbbdb1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 28 Mar 2020 13:24:48 +0100 Subject: [PATCH] Remove outdated code that reset the logenabled flags on non-Windows. Fixes #12291 --- UI/NativeApp.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index fd424b1035..95c0253d63 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -650,15 +650,6 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch PostLoadConfig(); - // Hard reset the logs. TODO: Get rid of this and read from config. -#ifndef _WIN32 - for (int i = 0; i < LogTypes::NUMBER_OF_LOGS; i++) { - LogTypes::LOG_TYPE type = (LogTypes::LOG_TYPE)i; - logman->SetEnabled(type, true); - logman->SetLogLevel(type, logLevel); - } -#endif - #if defined(__ANDROID__) || (defined(MOBILE_DEVICE) && !defined(_DEBUG)) // Enable basic logging for any kind of mobile device, since LogManager doesn't. // The MOBILE_DEVICE/_DEBUG condition matches LogManager.cpp.