diff --git a/frontend/menu/backend/menu_common_backend.c b/frontend/menu/backend/menu_common_backend.c index d43c0b24df..cd392fef09 100644 --- a/frontend/menu/backend/menu_common_backend.c +++ b/frontend/menu/backend/menu_common_backend.c @@ -1419,9 +1419,6 @@ static int menu_settings_iterate(unsigned action) unsigned type = 0; unsigned menu_type = 0; - if (!driver.menu) - return 0; - driver.menu->frame_buf_pitch = driver.menu->width * 2; if (action != MENU_ACTION_REFRESH) @@ -1527,9 +1524,6 @@ static int menu_viewport_iterate(unsigned action) rarch_viewport_t *custom = (rarch_viewport_t*) &g_extern.console.screen.viewports.custom_vp; - if (!driver.menu) - return 0; - file_list_get_last(driver.menu->menu_stack, NULL, &label, &menu_type); geom = (struct retro_game_geometry*)&g_extern.system.av_info.geometry; @@ -1787,8 +1781,6 @@ static int menu_custom_bind_iterate_keyboard(void *data, unsigned action) return 0; } - - static int menu_action_ok(const char *dir, unsigned menu_type) { const char *label = NULL; @@ -2105,12 +2097,6 @@ static int menu_common_iterate(unsigned action) const char *path = NULL; const char *menu_label = NULL; - if (!driver.menu) - { - RARCH_ERR("Cannot iterate menu, menu handle is not initialized.\n"); - return 0; - } - file_list_get_last(driver.menu->menu_stack, &path, &menu_label, &menu_type); if (driver.video_data && driver.menu_ctx && driver.menu_ctx->set_texture)