From 0cea2cf15875959574c71f03089af978f5395721 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 30 Apr 2018 15:32:28 +0200 Subject: [PATCH] Remove two Coverity warnings --- menu/menu_displaylist.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 42de530b67..d9e8a5fd1d 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -4298,14 +4298,6 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data) MSG_UNKNOWN, (MENU_SETTINGS_AUDIO_MIXER_STREAM_ACTIONS_REMOVE_BEGIN + id), 0, 0); - count++; - - if (count == 0) - menu_entries_append_enum(info->list, - msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ENTRIES_TO_DISPLAY), - msg_hash_to_str(MENU_ENUM_LABEL_NO_ENTRIES_TO_DISPLAY), - MENU_ENUM_LABEL_NO_ENTRIES_TO_DISPLAY, - FILE_TYPE_NONE, 0, 0); } info->need_push = true; @@ -6128,13 +6120,6 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data) count++; } - if (count == 0) - menu_entries_append_enum(info->list, - msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND), - msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND), - MENU_ENUM_LABEL_NO_SETTINGS_FOUND, - 0, 0, 0); - info->need_refresh = true; info->need_push = true; }