Drop the V1 plugin compatibility code

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/389/head
Gergely Nagy 6 years ago
parent 35092bd2d3
commit cd26604638

@ -70,20 +70,6 @@ EventHandlerResult GhostInTheFirmware::beforeReportingState() {
return EventHandlerResult::OK;
}
// Legacy V1 API
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
void GhostInTheFirmware::begin() {
Kaleidoscope.useLoopHook(legacyLoopHook);
}
void GhostInTheFirmware::legacyLoopHook(bool is_post_clear) {
if (is_post_clear)
return;
::GhostInTheFirmware.beforeReportingState();
}
#endif
};
kaleidoscope::GhostInTheFirmware GhostInTheFirmware;

@ -37,16 +37,6 @@ class GhostInTheFirmware : 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 bool is_active_;
static bool is_pressed_;

Loading…
Cancel
Save