From 7420b9988dfe4cae550944e5cf088bff8804cf35 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 20 Aug 2018 23:17:22 +0200 Subject: [PATCH] Drop the V1 plugin API compatibility code Signed-off-by: Gergely Nagy --- src/Kaleidoscope/MagicCombo.cpp | 13 ------------- src/Kaleidoscope/MagicCombo.h | 10 ---------- 2 files changed, 23 deletions(-) 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_; };