diskselector: Remove unreachable codes

Summary:
The soon to be deleted item 'it' is removed from the list at line 356.
So the first item of the list can never be the same one with it,
which means else statement is unreachable.

Test Plan: None

Reviewers: raster, seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D597
devs/felipealmeida/promises
Jaeun Choi 10 years ago committed by Daniel Juyung Seo
parent 6c3a6ae940
commit 6aa752a679
  1. 8
      legacy/elementary/src/lib/elm_diskselector.c

@ -359,13 +359,7 @@ _item_del_pre_hook(Elm_Object_Item *item)
{
if (sd->items)
{
dit = (Elm_Diskselector_Item *)eina_list_nth(sd->items, 0);
if (dit != it)
sd->selected_item = dit;
else
sd->selected_item = eina_list_nth(sd->items, 1);
sd->selected_item = (Elm_Diskselector_Item *)eina_list_nth(sd->items, 0);
_selected_item_indicate(sd->selected_item);
}
else

Loading…
Cancel
Save