summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2014-03-03 23:30:53 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-03 23:30:53 +0900
commit0601f68e54eb10e7706180be971231f7861c733d (patch)
tree6e8676beea5b89fca697569125c9ec65ad454a0e
parentdcdeed8adeeef219e86ae62b02f5c12e419cd36d (diff)
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
-rw-r--r--src/lib/elm_diskselector.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index 8a00fffc1..89764b59c 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -359,13 +359,7 @@ _item_del_pre_hook(Elm_Object_Item *item)
359 { 359 {
360 if (sd->items) 360 if (sd->items)
361 { 361 {
362 dit = (Elm_Diskselector_Item *)eina_list_nth(sd->items, 0); 362 sd->selected_item = (Elm_Diskselector_Item *)eina_list_nth(sd->items, 0);
363
364 if (dit != it)
365 sd->selected_item = dit;
366 else
367 sd->selected_item = eina_list_nth(sd->items, 1);
368
369 _selected_item_indicate(sd->selected_item); 363 _selected_item_indicate(sd->selected_item);
370 } 364 }
371 else 365 else