From a0401429b6e085f47c5c5b1aa1ac6d4f0b1d5a57 Mon Sep 17 00:00:00 2001 From: Yohan Boujon Date: Fri, 9 May 2025 11:31:45 +0200 Subject: [PATCH] Redundant ui calls. --- src/main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0f9bfdc..1ddab91 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -16,8 +16,6 @@ Logger& logger = Logger::GetInstance(); static inline void loop_event(EventHandler &handler, const EventPayload &payload) { - UserInterface &ui = UserInterface::GetInstance(); - if (payload.type == EventType::STOP) handler.stop(); else if (payload.type == EventType::SWITCH_SCREEN) @@ -29,7 +27,6 @@ int main(int argc, char **argv) { // Event/Screen EventHandler handler; - UserInterface &ui = UserInterface::GetInstance(); // Page declaration Page1 page1(handler);