Remove unused function KeyPoll::isUp()

This function was marked as unused by cppcheck.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-01-02 09:06:42 -05:00
1 parent ad34e95128
commit 916a19c09c
2 files changed
-7

No files matched your search

-5
View File
@@ -323,11 +323,6 @@ bool KeyPoll::isDown(SDL_Keycode key)
return keymap[key];
}
bool KeyPoll::isUp(SDL_Keycode key)
{
return !keymap[key];
}
bool KeyPoll::isDown(std::vector<SDL_GameControllerButton> buttons)
{
for (size_t i = 0; i < buttons.size(); i += 1)
-2
View File
@@ -54,8 +54,6 @@ public:
bool isDown(SDL_Keycode key);
bool isUp(SDL_Keycode key);
bool isDown(std::vector<SDL_GameControllerButton> buttons);
bool isDown(SDL_GameControllerButton button);
bool controllerButtonDown();