CBinds: Remove unused ModifierMatchesKey()

This commit is contained in:
Alexander Akulich 2022-02-07 01:41:31 +03:00
parent fff597cd2a
commit e0876960fc
2 changed files with 0 additions and 19 deletions

View file

@ -132,24 +132,6 @@ int CBinds::GetModifierMaskOfKey(int Key)
}
}
bool CBinds::ModifierMatchesKey(int Modifier, int Key)
{
switch(Modifier)
{
case MODIFIER_SHIFT:
return Key == KEY_LSHIFT || Key == KEY_RSHIFT;
case MODIFIER_CTRL:
return Key == KEY_LCTRL || Key == KEY_RCTRL;
case MODIFIER_ALT:
return Key == KEY_LALT || Key == KEY_RALT;
case MODIFIER_GUI:
return Key == KEY_LGUI || Key == KEY_RGUI;
case MODIFIER_NONE:
default:
return false;
}
}
bool CBinds::OnInput(IInput::CEvent e)
{
// don't handle invalid events

View file

@ -55,7 +55,6 @@ public:
int GetBindSlot(const char *pBindString, int *pModifierCombination);
static int GetModifierMask(IInput *i);
static int GetModifierMaskOfKey(int Key);
static bool ModifierMatchesKey(int Modifier, int Key);
static const char *GetModifierName(int Modifier);
static const char *GetKeyBindModifiersName(int ModifierCombination);