Skip to content

Commit

Permalink
Allow setting view dispatcher callbacks to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Apr 10, 2024
1 parent c1e8cbf commit 6bb605f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions applications/services/gui/view_dispatcher.c
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 6bb605f

Please sign in to comment.