hermet pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=30c7a95fce4507c9af538cd8ca9e9953e9913af5
commit 30c7a95fce4507c9af538cd8ca9e9953e9913af5 Author: ChunEon Park <[email protected]> Date: Sat Jan 10 17:47:14 2015 +0900 genlist: remove unnecessary null check. --- src/lib/elm_genlist.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index c3e9fac..dc8b5d7 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -504,12 +504,9 @@ _view_clear(Evas_Object *view, Eina_List **texts, Eina_List **contents) Evas_Object *c; const Eina_List *l; - if (texts) - { - EINA_LIST_FOREACH(*texts, l, part) - edje_object_part_text_set(view, part, NULL); - ELM_SAFE_FREE(*texts, elm_widget_stringlist_free); - } + EINA_LIST_FOREACH(*texts, l, part) + edje_object_part_text_set(view, part, NULL); + ELM_SAFE_FREE(*texts, elm_widget_stringlist_free); EINA_LIST_FREE(*contents, c) evas_object_del(c); --
