From 151c6f95407241914a106047e13f447c7f375a10 Mon Sep 17 00:00:00 2001 From: Sarah GLINER Date: Fri, 24 Nov 2023 09:56:27 +0100 Subject: [PATCH] ux: remove useless wrapper --- src/monero_ux_nano.c | 6 +----- src/monero_ux_stax_menu.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/monero_ux_nano.c b/src/monero_ux_nano.c index 140522b..1b4523b 100644 --- a/src/monero_ux_nano.c +++ b/src/monero_ux_nano.c @@ -659,10 +659,6 @@ void ui_menu_pubaddr_display(unsigned int value) { } } -static void exit(void) { - app_exit(); -} - #undef ADDR_TYPE #undef ADDR_MAJOR #undef ADDR_MINOR @@ -682,7 +678,7 @@ UX_STEP_CB(ux_menu_main_2_step, pb, UX_STEP_CB(ux_menu_main_3_step, pb, ui_menu_about_display(), {&C_icon_certificate, "About"}); -UX_STEP_CB(ux_menu_main_4_step, pb, exit(), {&C_icon_dashboard_x, "Quit app"}); +UX_STEP_CB(ux_menu_main_4_step, pb, app_exit(), {&C_icon_dashboard_x, "Quit app"}); UX_FLOW(ux_flow_main, &ux_menu_main_1_step, &ux_menu_main_2_step, &ux_menu_main_3_step, &ux_menu_main_4_step); diff --git a/src/monero_ux_stax_menu.c b/src/monero_ux_stax_menu.c index 431df51..b3bba36 100644 --- a/src/monero_ux_stax_menu.c +++ b/src/monero_ux_stax_menu.c @@ -84,10 +84,6 @@ static void update_account(void) { G_monero_vstate.disp_addr_m = 0; } -static void exit(void) { - app_exit(); -} - static bool settings_navigation_cb(uint8_t page, nbgl_pageContent_t* content) { if (page == 0) { content->type = BARS_LIST; @@ -253,7 +249,7 @@ void ui_menu_main_display(void) { NULL); nbgl_useCaseHomeExt("Monero", &C_Monero_64px, NULL, true, transactionContext.buffer, - display_account, display_settings_menu, exit); + display_account, display_settings_menu, app_exit); } /* --- INIT --- */