Merge common code.

SVN revision: 35455
This commit is contained in:
Cedric BAIL 2008-08-13 09:21:33 +00:00
parent 911cd4deda
commit a7aaf30440
1 changed files with 2 additions and 5 deletions

View File

@ -79,7 +79,6 @@ eina_inlist_accessor_get_at(Eina_Accessor_Inlist *it, unsigned int index, void *
++i, over = over->next)
;
if (over == NULL) return EINA_FALSE;
} else {
middle = it->index >> 1;
@ -89,19 +88,17 @@ eina_inlist_accessor_get_at(Eina_Accessor_Inlist *it, unsigned int index, void *
i > index && over != NULL;
--i, over = over->prev)
;
if (over == NULL) return EINA_FALSE;
} else {
/* Looking from the start. */
for (i = 0, over = it->head;
i < index && over != NULL;
++i, over = over->next)
;
if (over == NULL) return EINA_FALSE;
}
}
if (over == NULL) return EINA_FALSE;
it->current = over;
it->index = index;