From 3497296e2ffea898595480c8528704ec70105a67 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Sat, 13 Jan 2007 17:51:10 +0000 Subject: [PATCH] Remove this check, it can hide bugs. A non-empty list should always have a last pointer. SVN revision: 27949 --- legacy/ecore/src/lib/ecore/ecore_list.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/legacy/ecore/src/lib/ecore/ecore_list.c b/legacy/ecore/src/lib/ecore/ecore_list.c index 6cfc1de8dd..70304a5ef3 100644 --- a/legacy/ecore/src/lib/ecore/ecore_list.c +++ b/legacy/ecore/src/lib/ecore/ecore_list.c @@ -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;