From b1b5cb93e033a1b98768b3b1e2dcb098bdc17e46 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Sun, 8 Nov 2015 15:33:16 -0200 Subject: [PATCH] removed unnecessary comparisons --- cheevos.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/cheevos.c b/cheevos.c index 43a1a6ae0c..06dad5ed9d 100644 --- a/cheevos.c +++ b/cheevos.c @@ -1903,9 +1903,6 @@ void cheevos_populate_menu(menu_displaylist_info_t *info) for (i = 0; cheevo < end; i++, cheevo++) { - if (!cheevo) - continue; - if (!cheevo->active) menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0); } @@ -1917,9 +1914,6 @@ void cheevos_populate_menu(menu_displaylist_info_t *info) for (i = 0; cheevo < end; i++, cheevo++) { - if (!cheevo) - continue; - if (!cheevo->active) menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0); } @@ -1934,10 +1928,8 @@ void cheevos_populate_menu(menu_displaylist_info_t *info) for (i = 0; cheevo < end; i++, cheevo++) { - if (!cheevo || !cheevo->active) - continue; - - menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0); + if (cheevo->active) + menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0); } if (settings->cheevos.test_unofficial) @@ -1947,10 +1939,8 @@ void cheevos_populate_menu(menu_displaylist_info_t *info) for (i = 0; cheevo < end; i++, cheevo++) { - if (!cheevo || !cheevo->active) - continue; - - menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0); + if (!cheevo->active) + menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0); } } }