Redundant ui calls.

This commit is contained in:
Yohan Boujon 2025-05-09 11:31:45 +02:00
parent 5aed3b80e9
commit a0401429b6

View file

@ -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);