Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore


Modified Files:
        ecore_list.c 


Log Message:
Remove this check, it can hide bugs. A non-empty list should always
have a last pointer.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_list.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- ecore_list.c        13 Jan 2007 17:49:15 -0000      1.29
+++ ecore_list.c        13 Jan 2007 17:51:10 -0000      1.30
@@ -665,9 +665,6 @@
    if (ecore_list_is_empty(list))
      return NULL;
 
-   if (!list->last)
-     return NULL;
-
    old = list->last;
    if (list->current == old)
      list->current = NULL;



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to