diff --git a/src/Kaleidoscope/GeminiPR.cpp b/src/Kaleidoscope/GeminiPR.cpp index a60a3459..879548bc 100644 --- a/src/Kaleidoscope/GeminiPR.cpp +++ b/src/Kaleidoscope/GeminiPR.cpp @@ -47,21 +47,6 @@ EventHandlerResult GeminiPR::onKeyswitchEvent(Key &mapped_key, byte row, byte co return EventHandlerResult::EVENT_CONSUMED; } -// Legacy V1 API - -#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API -void GeminiPR::begin() { - Kaleidoscope.useEventHandlerHook(legacyEventHandler); -} - -Key GeminiPR::legacyEventHandler(Key mapped_key, byte row, byte col, uint8_t key_state) { - EventHandlerResult r = ::GeminiPR.onKeyswitchEvent(mapped_key, row, col, key_state); - if (r == EventHandlerResult::OK) - return mapped_key; - return Key_NoKey; -} -#endif - } } diff --git a/src/Kaleidoscope/GeminiPR.h b/src/Kaleidoscope/GeminiPR.h index 2cb5e5c0..333acf40 100644 --- a/src/Kaleidoscope/GeminiPR.h +++ b/src/Kaleidoscope/GeminiPR.h @@ -31,16 +31,6 @@ class GeminiPR : public kaleidoscope::Plugin { EventHandlerResult onKeyswitchEvent(Key &mapped_key, byte row, byte col, uint8_t keyState); -#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API - kaleidoscope::EventHandlerResult onSetup() { - return kaleidoscope::EventHandlerResult::OK; - } - - protected: - void begin(); - static Key legacyEventHandler(Key mapped_key, byte row, byte col, uint8_t key_state); -#endif - private: static uint8_t keys_held_; static uint8_t state_[6];