Allow setting view_dispatcher callbacks to NULL again (#3580)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
MMX 2024-04-18 03:34:33 +03:00 committed by GitHub
parent 94c2d7a4e3
commit 00970a4b12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,6 @@ 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;
}
@ -59,7 +58,6 @@ 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;
}
@ -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;
}