From eb0d89e22031425fc81ee578d265fde4112cab94 Mon Sep 17 00:00:00 2001 From: wraitii Date: Sat, 25 Jul 2020 07:05:36 +0000 Subject: [PATCH] Delete unused function left behind in e9361705ae e9361705ae cleaned up our config setup, but left behind isOverriden, triggering a compilation warning. Reported by: Imarok This was SVN commit r23885. --- source/ps/GameSetup/HWDetect.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/source/ps/GameSetup/HWDetect.cpp b/source/ps/GameSetup/HWDetect.cpp index 78acc1c5ff..ffa8b6c8eb 100644 --- a/source/ps/GameSetup/HWDetect.cpp +++ b/source/ps/GameSetup/HWDetect.cpp @@ -132,15 +132,6 @@ void ConvertTLBs(const ScriptInterface& scriptInterface, JS::MutableHandleValue } #endif -// The Set* functions will override the default behaviour, unless the user -// has explicitly set a config variable to override that. -// (TODO: This is an ugly abuse of the config system) -static bool IsOverridden(const char* setting) -{ - EConfigNamespace ns = g_ConfigDB.GetValueNamespace(CFG_COMMAND, setting); - return !(ns == CFG_LAST || ns == CFG_DEFAULT); -} - void SetDisableAudio(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled) { g_DisableAudio = disabled;