efl_ui_focus_manager_calc: remove needless check for normal node

Summary:
a node in focus stack is always normal node. we don't need to check whether
node is normal.

see also, 97ec48434f

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5930
This commit is contained in:
YeongJong Lee 2018-04-12 14:35:38 +02:00 committed by Marcel Hollerbach
parent 1d182a44f3
commit 4841165530
1 changed files with 1 additions and 19 deletions

View File

@ -334,24 +334,6 @@ _focus_stack_unfocus_last(Efl_Ui_Focus_Manager_Calc_Data *pd)
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
@ -1465,7 +1447,7 @@ _request_move(Eo *obj EINA_UNUSED, Efl_Ui_Focus_Manager_Calc_Data *pd, Efl_Ui_Fo
Node *dir = NULL;
if (!upper)
upper = _focus_stack_last_regular(pd);
upper = eina_list_last_data_get(pd->focus_stack);
if (!upper)
{