Drop the V1 plugin API compatibility code

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/365/head
Gergely Nagy 6 years ago
parent f97313f5b0
commit d090894bc0

@ -86,19 +86,6 @@ EventHandlerResult BootGreetingEffect::afterEachCycle() {
return EventHandlerResult::OK;
}
// Legacy V1 API
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
void BootGreetingEffect::begin() {
Kaleidoscope.useLoopHook(legacyLoopHook);
}
void BootGreetingEffect::legacyLoopHook(bool is_post_clear) {
if (!is_post_clear)
return;
::BootGreetingEffect.afterEachCycle();
}
#endif
}
kaleidoscope::BootGreetingEffect BootGreetingEffect;

@ -34,16 +34,6 @@ class BootGreetingEffect : public kaleidoscope::Plugin {
EventHandlerResult afterEachCycle();
#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 void findLed(void);
static bool done_;

Loading…
Cancel
Save