Skip to content

Commit 0a9be88

Browse files
committed
ui: Remove noop
`.on_event` is allowed to be NULL
1 parent 9282b27 commit 0a9be88

File tree

15 files changed

+13
-32
lines changed

15 files changed

+13
-32
lines changed

src/ui/components/empty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
static const component_functions_t _component_functions = {
2222
.cleanup = ui_util_component_cleanup,
2323
.render = ui_util_component_render_subcomponents,
24-
.on_event = ui_util_on_event_noop,
24+
.on_event = NULL,
2525
};
2626

2727
/********************************** Create Instance **********************************/

src/ui/components/image.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void _render(component_t* component)
4848
static const component_functions_t _component_functions = {
4949
.cleanup = ui_util_component_cleanup,
5050
.render = _render,
51-
.on_event = ui_util_on_event_noop,
51+
.on_event = NULL,
5252
};
5353

5454
/********************************** Create Instance **********************************/

src/ui/components/info_centered.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
static const component_functions_t _component_functions = {
3131
.cleanup = ui_util_component_cleanup,
3232
.render = ui_util_component_render_subcomponents,
33-
.on_event = ui_util_on_event_noop,
33+
.on_event = NULL,
3434
};
3535

3636
/********************************** Create Instance **********************************/

src/ui/components/knight_rider.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void _render(component_t* component)
5050
static component_functions_t _component_functions = {
5151
.cleanup = ui_util_component_cleanup,
5252
.render = _render,
53-
.on_event = ui_util_on_event_noop,
53+
.on_event = NULL,
5454
};
5555

5656
/********************************** Create Instance **********************************/

src/ui/components/lockscreen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
static const component_functions_t _component_functions = {
3232
.cleanup = ui_util_component_cleanup,
3333
.render = ui_util_component_render_subcomponents,
34-
.on_event = ui_util_on_event_noop,
34+
.on_event = NULL,
3535
};
3636

3737
/********************************** Create Instance **********************************/

src/ui/components/orientation_arrows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static void _render(component_t* component)
142142
static component_functions_t _component_functions = {
143143
.cleanup = ui_util_component_cleanup,
144144
.render = _render,
145-
.on_event = ui_util_on_event_noop,
145+
.on_event = NULL,
146146
};
147147

148148
/********************************** Create Instance **********************************/

src/ui/components/progress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void _render(component_t* component)
3838
static const component_functions_t _component_functions = {
3939
.cleanup = ui_util_component_cleanup,
4040
.render = _render,
41-
.on_event = ui_util_on_event_noop,
41+
.on_event = NULL,
4242
};
4343

4444
component_t* progress_create(const char* title)

src/ui/components/screensaver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static void _render(component_t* component)
7171
static component_functions_t _component_functions = {
7272
.cleanup = ui_util_component_cleanup,
7373
.render = _render,
74-
.on_event = ui_util_on_event_noop,
74+
.on_event = NULL,
7575
};
7676

7777
component_t* screensaver_create(void)

src/ui/components/sdcard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void _render(component_t* component)
5959
static const component_functions_t _component_functions = {
6060
.cleanup = ui_util_component_cleanup,
6161
.render = _render,
62-
.on_event = ui_util_on_event_noop,
62+
.on_event = NULL,
6363
};
6464

6565
/********************************** Create Instance **********************************/

src/ui/components/status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void _render(component_t* component)
5555
static const component_functions_t _component_functions = {
5656
.cleanup = ui_util_component_cleanup,
5757
.render = _render,
58-
.on_event = ui_util_on_event_noop,
58+
.on_event = NULL,
5959
};
6060

6161
/********************************** Create Instance **********************************/

0 commit comments

Comments
 (0)