list: Removed unnecessary check in focused_item_get.

focused_item is NULL if the list is unfocused so do not need to check if
the list is focused. Just return focused_item.
This commit is contained in:
Daniel Juyung Seo 2014-03-23 23:28:22 +09:00
parent 7780b975ad
commit 26f4d3fcd9
1 changed files with 0 additions and 2 deletions

View File

@ -3149,9 +3149,7 @@ _elm_list_focused_item_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
{
Elm_Object_Item **ret = va_arg(*list, Elm_Object_Item **);
Elm_List_Smart_Data *sd = _pd;
if (ret) *ret = NULL;
if (!elm_object_focus_get(obj)) return;
if (ret) *ret = sd->focused_item;
}