Drop the V1 plugin API compatibility code

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/365/head
Gergely Nagy 6 years ago
parent 8a170ff811
commit 7420b9988d

@ -53,19 +53,6 @@ EventHandlerResult MagicCombo::beforeReportingState() {
return EventHandlerResult::OK; 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; kaleidoscope::MagicCombo MagicCombo;

@ -63,16 +63,6 @@ class MagicCombo : public kaleidoscope::Plugin {
EventHandlerResult beforeReportingState(); 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: private:
static uint32_t end_time_; static uint32_t end_time_;
}; };

Loading…
Cancel
Save