Drop the V1 plugin API compatibility code

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/389/head
Gergely Nagy 6 years ago
parent 11cc38d6bc
commit 4e4b844ab1

@ -51,20 +51,6 @@ EventHandlerResult CycleTimeReport::afterEachCycle() {
return EventHandlerResult::OK;
}
// Deprecated V1 APIs
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
void CycleTimeReport::begin() {
Kaleidoscope.useLoopHook(legacyLoopHook);
}
void CycleTimeReport::legacyLoopHook(bool is_post_clear) {
if (is_post_clear)
::CycleTimeReport.afterEachCycle();
else
::CycleTimeReport.beforeEachCycle();
}
#endif
}
__attribute__((weak)) void cycleTimeReport(void) {

@ -31,12 +31,6 @@ class CycleTimeReport : public kaleidoscope::Plugin {
static uint32_t average_loop_time;
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
protected:
void begin();
static void legacyLoopHook(bool is_post_clear);
#endif
private:
static uint32_t next_report_time_;
static uint32_t loop_start_time_;

Loading…
Cancel
Save