diff --git a/src/Kaleidoscope/FingerPainter.cpp b/src/Kaleidoscope/FingerPainter.cpp index 38fe1332..12b568c3 100644 --- a/src/Kaleidoscope/FingerPainter.cpp +++ b/src/Kaleidoscope/FingerPainter.cpp @@ -108,20 +108,6 @@ bool FingerPainter::focusHook(const char *command) { return true; } -// Legacy V1 API -#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API -void FingerPainter::begin() { - Kaleidoscope.useEventHandlerHook(legacyEventHandler); -} - -Key FingerPainter::legacyEventHandler(Key mapped_key, byte row, byte col, uint8_t key_state) { - EventHandlerResult r = ::FingerPainter.onKeyswitchEvent(mapped_key, row, col, key_state); - if (r == EventHandlerResult::OK) - return mapped_key; - return Key_NoKey; -} -#endif - } kaleidoscope::FingerPainter FingerPainter; diff --git a/src/Kaleidoscope/FingerPainter.h b/src/Kaleidoscope/FingerPainter.h index 73d3a000..34389f71 100644 --- a/src/Kaleidoscope/FingerPainter.h +++ b/src/Kaleidoscope/FingerPainter.h @@ -35,11 +35,6 @@ class FingerPainter : public LEDMode { void update(void) final; void refreshAt(byte row, byte col) final; -#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API - void begin(); - static Key legacyEventHandler(Key mapped_key, byte row, byte col, uint8_t key_state); -#endif - private: static uint16_t color_base_; static bool edit_mode_;