GCKeyboardEmu: Eliminate unused Options group.

This commit is contained in:
Jordan Woyak 2022-11-10 21:09:34 -06:00
parent dca51f3ab0
commit 296959ec58
2 changed files with 0 additions and 8 deletions

View File

@ -75,9 +75,6 @@ GCKeyboard::GCKeyboard(const unsigned int index) : m_index(index)
groups.emplace_back(m_keys5x = new ControllerEmu::Buttons(_trans("Keys"))); groups.emplace_back(m_keys5x = new ControllerEmu::Buttons(_trans("Keys")));
for (const char* key : named_keys5) for (const char* key : named_keys5)
m_keys5x->AddInput(ControllerEmu::DoNotTranslate, key); m_keys5x->AddInput(ControllerEmu::DoNotTranslate, key);
// options
groups.emplace_back(m_options = new ControllerEmu::ControlGroup(_trans("Options")));
} }
std::string GCKeyboard::GetName() const std::string GCKeyboard::GetName() const
@ -101,8 +98,6 @@ ControllerEmu::ControlGroup* GCKeyboard::GetGroup(KeyboardGroup group)
return m_keys4x; return m_keys4x;
case KeyboardGroup::Kb5x: case KeyboardGroup::Kb5x:
return m_keys5x; return m_keys5x;
case KeyboardGroup::Options:
return m_options;
default: default:
return nullptr; return nullptr;
} }

View File

@ -23,8 +23,6 @@ enum class KeyboardGroup
Kb3x, Kb3x,
Kb4x, Kb4x,
Kb5x, Kb5x,
Options
}; };
class GCKeyboard : public ControllerEmu::EmulatedController class GCKeyboard : public ControllerEmu::EmulatedController
@ -43,7 +41,6 @@ private:
ControllerEmu::Buttons* m_keys3x; ControllerEmu::Buttons* m_keys3x;
ControllerEmu::Buttons* m_keys4x; ControllerEmu::Buttons* m_keys4x;
ControllerEmu::Buttons* m_keys5x; ControllerEmu::Buttons* m_keys5x;
ControllerEmu::ControlGroup* m_options;
const unsigned int m_index; const unsigned int m_index;
}; };