From 213277cad563854549b7b1b0d7f7d5fac82d1c06 Mon Sep 17 00:00:00 2001 From: philmoz Date: Sun, 8 Oct 2023 19:01:01 +1100 Subject: [PATCH] Remove redundant code. --- radio/src/gui/colorlcd/themes/etx_lv_theme.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/radio/src/gui/colorlcd/themes/etx_lv_theme.cpp b/radio/src/gui/colorlcd/themes/etx_lv_theme.cpp index acfef25e439..f07dbfae7b7 100644 --- a/radio/src/gui/colorlcd/themes/etx_lv_theme.cpp +++ b/radio/src/gui/colorlcd/themes/etx_lv_theme.cpp @@ -357,7 +357,6 @@ void useMainStyle() { styles = mainStyles; } **********************/ // Event handler forward references -static void field_edit_event(const lv_obj_class_t* class_p, lv_event_t* e); static void window_base_event(const lv_obj_class_t* class_p, lv_event_t* e); static void table_event(const lv_obj_class_t* class_p, lv_event_t* e); @@ -753,7 +752,7 @@ const lv_obj_class_t field_edit_class = { .constructor_cb = field_edit_constructor, .destructor_cb = nullptr, .user_data = nullptr, - .event_cb = field_edit_event, + .event_cb = nullptr, .width_def = LV_DPI_DEF, .height_def = 32, .editable = LV_OBJ_CLASS_EDITABLE_TRUE, @@ -765,7 +764,7 @@ const lv_obj_class_t number_edit_class = { .constructor_cb = number_edit_constructor, .destructor_cb = nullptr, .user_data = nullptr, - .event_cb = field_edit_event, + .event_cb = nullptr, .width_def = LV_DPI_DEF, .height_def = 32, .editable = LV_OBJ_CLASS_EDITABLE_TRUE, @@ -962,12 +961,6 @@ const lv_obj_class_t etx_modal_title_class = { .instance_size = sizeof(lv_label_t)}; // Event handlers -static void field_edit_event(const lv_obj_class_t* class_p, lv_event_t* e) -{ - /* Call the ancestor's event handler */ - lv_obj_event_base(&field_edit_class, e); -} - extern "C" void window_event_cb(lv_event_t* e); static void window_base_event(const lv_obj_class_t* class_p, lv_event_t* e)