Skip to content

Commit

Permalink
Allow setting view_dispatcher callbacks to NULL again (#3580)
Browse files Browse the repository at this point in the history
Co-authored-by: あく <[email protected]>
  • Loading branch information
xMasterX and skotopes authored Apr 18, 2024
1 parent 94c2d7a commit 00970a4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions applications/services/gui/view_dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@ void view_dispatcher_set_navigation_event_callback(
ViewDispatcher* view_dispatcher,
ViewDispatcherNavigationEventCallback callback) {
furi_check(view_dispatcher);
furi_check(callback);
view_dispatcher->navigation_event_callback = callback;
}

void view_dispatcher_set_custom_event_callback(
ViewDispatcher* view_dispatcher,
ViewDispatcherCustomEventCallback callback) {
furi_check(view_dispatcher);
furi_check(callback);
view_dispatcher->custom_event_callback = callback;
}

Expand All @@ -68,7 +66,6 @@ void view_dispatcher_set_tick_event_callback(
ViewDispatcherTickEventCallback callback,
uint32_t tick_period) {
furi_check(view_dispatcher);
furi_check(callback);
view_dispatcher->tick_event_callback = callback;
view_dispatcher->tick_period = tick_period;
}
Expand Down

0 comments on commit 00970a4

Please sign in to comment.