cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=74121c14cd5c1fe787baf569f7db4730a637e31f

commit 74121c14cd5c1fe787baf569f7db4730a637e31f
Author: Cedric BAIL <c.b...@partner.samsung.com>
Date:   Thu Jun 5 03:24:46 2014 +0200

    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.
---
 src/lib/eina/eina_inlist.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/lib/eina/eina_inlist.c b/src/lib/eina/eina_inlist.c
index 13ad0e2..6753b58 100644
--- a/src/lib/eina/eina_inlist.c
+++ b/src/lib/eina/eina_inlist.c
@@ -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;

-- 


Reply via email to