seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ef1f2e3c0aba8f1cdfaf7d1afb1bbec6dac0d75a

commit ef1f2e3c0aba8f1cdfaf7d1afb1bbec6dac0d75a
Author: Daniel Juyung Seo <[email protected]>
Date:   Sun Mar 23 23:28:22 2014 +0900

    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.
---
 src/lib/elm_list.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index c509090..a89b154 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -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;
 }
 

-- 


Reply via email to