Summary:
a node in focus stack is always normal node. we don't need to check whether
node is normal.
see also,
97ec48434f59c18c5fb60a9f9eed394c82fb5f91
Reviewers: bu5hm4n
Reviewed By: bu5hm4n
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D5930
return focusable;
}
-static Node*
-_focus_stack_last_regular(Efl_Ui_Focus_Manager_Calc_Data *pd)
-{
- Eina_List *l;
- Node *upper;
-
- l = eina_list_last(pd->focus_stack);
- upper = eina_list_last_data_get(pd->focus_stack);
-
- while (upper && upper->type != NODE_TYPE_NORMAL)
- {
- l = eina_list_prev(l);
- upper = eina_list_data_get(l);
- }
-
- return upper;
-}
-
//CALCULATING STUFF
static inline int
Node *dir = NULL;
if (!upper)
- upper = _focus_stack_last_regular(pd);
+ upper = eina_list_last_data_get(pd->focus_stack);
if (!upper)
{