ecore: optimize efl_model_list_value_get by using eina_list_nth_list.

This commit is contained in:
Cedric BAIL 2018-03-05 13:39:52 -08:00
parent 5bfdc435c7
commit d895527bd5
1 changed files with 3 additions and 6 deletions

View File

@ -42,15 +42,12 @@ efl_model_list_value_get(Eina_List *childrens,
eina_value_array_setup(&v, EINA_VALUE_TYPE_OBJECT, eina_list_count(childrens));
childrens = eina_list_nth_list(childrens, start);
EINA_LIST_FOREACH(childrens, l, child)
{
if (start != 0)
{
start--;
continue;
}
if (count == 0)
continue;
break;
count--;
eina_value_array_append(&v, child);