Remove this check, it can hide bugs. A non-empty list should always
authorSebastian Dransfeld <sd@tango.flipp.net>
Sat, 13 Jan 2007 17:51:10 +0000 (17:51 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Sat, 13 Jan 2007 17:51:10 +0000 (17:51 +0000)
have a last pointer.

SVN revision: 27949

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

index 6cfc1de..70304a5 100644 (file)
@@ -665,9 +665,6 @@ _ecore_list_remove_last(Ecore_List *list)
    if (ecore_list_is_empty(list))
      return NULL;
 
-   if (!list->last)
-     return NULL;
-
    old = list->last;
    if (list->current == old)
      list->current = NULL;