No need to check this, a non-empty list must have a first pointer.
authorSebastian Dransfeld <sd@tango.flipp.net>
Sun, 21 Jan 2007 12:48:03 +0000 (12:48 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Sun, 21 Jan 2007 12:48:03 +0000 (12:48 +0000)
SVN revision: 28090

legacy/ecore/src/lib/ecore/ecore_list.c

index 4795091..f26c75c 100644 (file)
@@ -675,9 +675,6 @@ _ecore_list_remove_first(Ecore_List *list)
    if (ecore_list_is_empty(list))
      return NULL;
 
-   if (!list->first)
-     return NULL;
-
    old = list->first;
 
    list->first = list->first->next;