From 95600ce02ff1184b1f691d6f715bb6af028bc439 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 20 Aug 2018 23:09:22 +0200 Subject: [PATCH] Drop the V1 plugin API compatibility code Signed-off-by: Gergely Nagy --- src/Kaleidoscope/LED-ActiveModColor.cpp | 15 --------------- src/Kaleidoscope/LED-ActiveModColor.h | 10 ---------- 2 files changed, 25 deletions(-) diff --git a/src/Kaleidoscope/LED-ActiveModColor.cpp b/src/Kaleidoscope/LED-ActiveModColor.cpp index 3f9e1f73..5bd67263 100644 --- a/src/Kaleidoscope/LED-ActiveModColor.cpp +++ b/src/Kaleidoscope/LED-ActiveModColor.cpp @@ -61,21 +61,6 @@ EventHandlerResult ActiveModColorEffect::beforeReportingState() { return EventHandlerResult::OK; } -// Legacy API -#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API -void ActiveModColorEffect::begin() { - Kaleidoscope.useLoopHook(legacyLoopHook); -} - -void ActiveModColorEffect::legacyLoopHook(bool is_post_clear) { - if (is_post_clear) - return; - - ::ActiveModColorEffect.beforeReportingState(); -} -#endif - - } kaleidoscope::ActiveModColorEffect ActiveModColorEffect; diff --git a/src/Kaleidoscope/LED-ActiveModColor.h b/src/Kaleidoscope/LED-ActiveModColor.h index 954ffeaa..66617c9f 100644 --- a/src/Kaleidoscope/LED-ActiveModColor.h +++ b/src/Kaleidoscope/LED-ActiveModColor.h @@ -30,16 +30,6 @@ class ActiveModColorEffect : public kaleidoscope::Plugin { static cRGB sticky_color; 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 }; }