diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-18 19:12:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-18 19:12:47 +0300 |
commit | fe504040c415c8d2692dcbd1c6374ae52ee52777 (patch) | |
tree | 4cac2e57a86c61af6711af303124611cc2e8d2f8 /src/input/inputactionsortfunctor.h | |
parent | 43159aed2516e648c9d050b3312aa7678d2fae05 (diff) | |
download | manaverse-fe504040c415c8d2692dcbd1c6374ae52ee52777.tar.gz manaverse-fe504040c415c8d2692dcbd1c6374ae52ee52777.tar.bz2 manaverse-fe504040c415c8d2692dcbd1c6374ae52ee52777.tar.xz manaverse-fe504040c415c8d2692dcbd1c6374ae52ee52777.zip |
Remove extra checks.
Diffstat (limited to 'src/input/inputactionsortfunctor.h')
-rw-r--r-- | src/input/inputactionsortfunctor.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/input/inputactionsortfunctor.h b/src/input/inputactionsortfunctor.h index 3de625fea..ec556bf39 100644 --- a/src/input/inputactionsortfunctor.h +++ b/src/input/inputactionsortfunctor.h @@ -35,16 +35,6 @@ class InputActionSortFunctor final { const size_t k1 = CAST_SIZE(key1); const size_t k2 = CAST_SIZE(key2); - if (k1 >= CAST_SIZE(InputAction::TOTAL)) - { - logger->log("broken key1: %ld", static_cast<long>(k1)); - return false; - } - if (k2 >= CAST_SIZE(InputAction::TOTAL)) - { - logger->log("broken key2: %ld", static_cast<long>(k2)); - return false; - } return keys[k1].priority > keys[k2].priority; } |