mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-31 01:15:17 +01:00
InputConfig: Remove unused local variables
Remove unused vector `controller_names` from `LoadConfig` and
`SaveConfig`. The vector has names added to it but they're never used.
Prior to d03f9032c1 these vectors were
passed to `DynamicInputTextureManager::GenerateTextures`, but that
commit removed those calls.
This commit is contained in:
@@ -70,7 +70,6 @@ bool InputConfig::LoadConfig()
|
||||
{
|
||||
int n = 0;
|
||||
|
||||
std::vector<std::string> controller_names;
|
||||
for (auto& controller : m_controllers)
|
||||
{
|
||||
Common::IniFile::Section config;
|
||||
@@ -92,7 +91,6 @@ bool InputConfig::LoadConfig()
|
||||
}
|
||||
controller->LoadConfig(&config);
|
||||
controller->UpdateReferences(g_controller_interface);
|
||||
controller_names.push_back(controller->GetName());
|
||||
|
||||
// Next profile
|
||||
n++;
|
||||
@@ -125,11 +123,9 @@ void InputConfig::SaveConfig()
|
||||
Common::IniFile inifile;
|
||||
inifile.Load(ini_filename);
|
||||
|
||||
std::vector<std::string> controller_names;
|
||||
for (auto& controller : m_controllers)
|
||||
{
|
||||
controller->SaveConfig(inifile.GetOrCreateSection(controller->GetName()));
|
||||
controller_names.push_back(controller->GetName());
|
||||
}
|
||||
|
||||
inifile.Save(ini_filename);
|
||||
|
||||
Reference in New Issue
Block a user