Skip to content

Commit

Permalink
Remove redundant code.
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz committed Oct 9, 2023
1 parent d0a947d commit 213277c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions radio/src/gui/colorlcd/themes/etx_lv_theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 213277c

Please sign in to comment.