diff --git a/src/Kaleidoscope/MagicCombo.cpp b/src/Kaleidoscope/MagicCombo.cpp index 4332ce35..e17c09bf 100644 --- a/src/Kaleidoscope/MagicCombo.cpp +++ b/src/Kaleidoscope/MagicCombo.cpp @@ -53,19 +53,6 @@ EventHandlerResult MagicCombo::beforeReportingState() { return EventHandlerResult::OK; } -// Legacy V1 API -#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API -void MagicCombo::begin() { - Kaleidoscope.useLoopHook(legacyLoopHook); -} - -void MagicCombo::legacyLoopHook(bool is_post_clear) { - if (is_post_clear) - return; - ::MagicCombo.beforeReportingState(); -} -#endif - }; kaleidoscope::MagicCombo MagicCombo; diff --git a/src/Kaleidoscope/MagicCombo.h b/src/Kaleidoscope/MagicCombo.h index 105c71be..d33531d9 100644 --- a/src/Kaleidoscope/MagicCombo.h +++ b/src/Kaleidoscope/MagicCombo.h @@ -63,16 +63,6 @@ class MagicCombo : public kaleidoscope::Plugin { EventHandlerResult beforeReportingState(); -#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API - kaleidoscope::EventHandlerResult onSetup() { - return kaleidoscope::EventHandlerResult::OK; - } - - protected: - void begin(); - static void legacyLoopHook(bool is_post_clear); -#endif - private: static uint32_t end_time_; };