Drop the V1 plugin API compatibility code

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/365/head
Gergely Nagy 6 years ago
parent 386787f1ca
commit 454c0d5b06

@ -75,18 +75,4 @@ kaleidoscope::EventHandlerResult NumPad_::afterEachCycle() {
return kaleidoscope::EventHandlerResult::OK;
}
// Legacy V1 API
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
void NumPad_::begin() {
onSetup();
Kaleidoscope.useLoopHook(legacyLoopHook);
}
void NumPad_::legacyLoopHook(bool is_post_clear) {
if (!is_post_clear)
return;
NumPad.afterEachCycle();
}
#endif
NumPad_ NumPad;

@ -15,12 +15,6 @@ class NumPad_ : public kaleidoscope::Plugin {
kaleidoscope::EventHandlerResult onSetup(void);
kaleidoscope::EventHandlerResult afterEachCycle();
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
protected:
void begin();
static void legacyLoopHook(bool is_post_clear);
#endif
private:
static byte row, col;
static bool cleanupDone;

Loading…
Cancel
Save