From aebeed445485a049d14c6a392b4acc777e8e8c02 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 25 Aug 2017 10:51:36 -0700 Subject: [PATCH] evas: remove dead code that won't be easy to bring back to life. --- src/lib/evas/canvas/evas_object_image.c | 38 ------------------------- 1 file changed, 38 deletions(-) diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c index b3bd955820..2fb8d656a0 100644 --- a/src/lib/evas/canvas/evas_object_image.c +++ b/src/lib/evas/canvas/evas_object_image.c @@ -124,44 +124,6 @@ evas_object_image_render_prepare(Evas_Object *eo_obj EINA_UNUSED, Evas_Object_Pr { if (o->engine_data) ENFN->image_prepare(ENC, o->engine_data); } -#endif -#if 0 - // is it visible? ... rgba 0 0 0 0? not mapped and in viewport? - if ( - ((o->cur->border.l != 0) || (o->cur->border.r != 0) || - (o->cur->border.t != 0) || (o->cur->border.b != 0)) && - ((obj->cur->geometry.w < 256) && (obj->cur->geometry.h < 256)) - ) - { - void *ctx, *prep = NULL; - - if (!o->engine_data_prep) - { - prep = ENFN->image_surface_noscale_new - (ENC, obj->cur->geometry.w, obj->cur->geometry.h, - o->cur->has_alpha); - ctx = ENFN->context_new(ENC); - ENFN->context_clip_set(ENC, ctx, 0, 0, - obj->cur->geometry.w, - obj->cur->geometry.h); - if (o->cur->has_alpha) - { - ENFN->context_render_op_set(ENC, ctx, EVAS_RENDER_COPY); - ENFN->context_color_set(ENC, ctx, 0, 0, 0, 0); - ENFN->rectangle_draw(ENC, ENDT, ctx, prep, 0, 0, - obj->cur->geometry.w, - obj->cur->geometry.h, do_async); - } - ENFN->context_render_op_set(ENC, ctx, EVAS_RENDER_BLEND); - evas_object_image_render(eo_obj, obj, obj->private_data, ENDT, - ctx, prep, - -obj->cur->geometry.x, - -obj->cur->geometry.y, - do_async); - ENFN->context_free(ENC, ctx); - o->engine_data_prep = prep; - } - } #endif // XXX: if image is a proxy, PREPEND to prerender list in evas canvas }