From 60cc8e20a1aeb182c133613bed8e8c84ae391253 Mon Sep 17 00:00:00 2001 From: Gustavo Lima Chaves Date: Wed, 2 May 2012 16:59:01 +0000 Subject: [PATCH] [Elm] Removing cruft (unnecessary) code on elm win. With things done right, one does not need this child deletion by force. SVN revision: 70641 --- legacy/elementary/src/lib/elm_win.c | 34 ----------------------------- 1 file changed, 34 deletions(-) diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c index 2c7e1df360..bb59ed6a1b 100644 --- a/legacy/elementary/src/lib/elm_win.c +++ b/legacy/elementary/src/lib/elm_win.c @@ -1003,8 +1003,6 @@ _elm_win_smart_del(Evas_Object *obj) { ELM_WIN_DATA_GET(obj, sd); - Evas_Object *child, *child2; - /* NB: child deletion handled by parent's smart del */ if (sd->parent) @@ -1028,38 +1026,6 @@ _elm_win_smart_del(Evas_Object *obj) if (sd->shot.info) eina_stringshare_del(sd->shot.info); if (sd->shot.timer) ecore_timer_del(sd->shot.timer); - child = evas_object_bottom_get(sd->evas); - while (child) - { - /* if the object we see *IS* the window object (because we are - * faking a parent object inside the canvas), then skip it and - * go to the next one */ - if (child == obj) - { - child = evas_object_above_get(child); - if (!child) break; - } - /* if we are using the next object above from the previous loop */ - if (child == child2) - { - /* this object has refcounts from the previous loop */ - child2 = evas_object_above_get(child); - if (child2) evas_object_ref(child2); - evas_object_del(child); - /* so unref from previous loop */ - evas_object_unref(child); - child = child2; - } - else - { - /* just delete as normal (probably only first object) */ - child2 = evas_object_above_get(child); - if (child2) evas_object_ref(child2); - evas_object_del(child); - child = child2; - } - } - #ifdef HAVE_ELEMENTARY_X if (sd->client_message_handler) ecore_event_handler_del(sd->client_message_handler);