From 37ac11bb49c15fe98c413c9d6ddb29e087280399 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 6 Aug 2017 07:06:49 +0200 Subject: [PATCH] Remove some unnecessary code We do not need to check if the key we received is masked - the core event handler does that for us, and we won't even see masked keys. This saves us a few bytes of code. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/OneShot.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Kaleidoscope/OneShot.cpp b/src/Kaleidoscope/OneShot.cpp index 2519b60f..30e8f2c9 100644 --- a/src/Kaleidoscope/OneShot.cpp +++ b/src/Kaleidoscope/OneShot.cpp @@ -87,12 +87,6 @@ Key OneShot::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_st if (!state_.all) { if (!isOS(mapped_key)) { - if (KeyboardHardware.isKeyMasked(row, col)) { - if (keyToggledOff(key_state)) - KeyboardHardware.unMaskKey(row, col); - return Key_NoKey; - } - return mapped_key; }