eina: remove logically dead code.

I am wondering why this code was around, an useless variable and an if
that would never be taken...

CID 1039940.
This commit is contained in:
Cedric BAIL 2014-06-05 03:24:46 +02:00
parent c33acef5d7
commit 74121c14cd
1 changed files with 0 additions and 7 deletions

View File

@ -812,7 +812,6 @@ eina_inlist_sort(Eina_Inlist *head, Eina_Compare_Cb func)
unsigned int i = 0;
unsigned int n = 0;
Eina_Inlist *tail = head;
Eina_Inlist *unsort = NULL;
Eina_Inlist *stack[EINA_INLIST_SORT_STACK_SIZE];
EINA_SAFETY_ON_NULL_RETURN_VAL(head, NULL);
@ -849,12 +848,6 @@ eina_inlist_sort(Eina_Inlist *head, Eina_Compare_Cb func)
head = stack[0];
tail = eina_inlist_sort_rebuild_prev(head);
if (unsort)
{
tail->next = unsort;
unsort->prev = tail;
}
head->last = tail;
return head;