summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-05-09 11:46:11 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-05-09 11:46:11 +0900
commit290b3d8926460a7731935dc554694e34a4edb540 (patch)
tree7aa5bb360885dd6f5b276e2caa9d8adcc2ca2f23
parent3787d33992318270b2ccf146423f88f4057cb421 (diff)
Evas: Remove invalid code
Since Efl.Canvas.Image and Efl.Canvas.Scene3d inherit from Evas.Image, the two CHECK(isa) can not be reached, and also the cast from eo_data_scope_get() would be invalid (it should return NULL as those classes have no private data). Also, I believe the CHECK() for texture3d can not be reached either since texture3d objects are not evas objects. Ping @zmike
-rw-r--r--src/lib/evas/canvas/evas_main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 2f7fd0c8aa..ae434d0a61 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -735,10 +735,6 @@ _image_data_unset(Evas_Object_Protected_Data *obj, Eina_List **list)
735 } 735 }
736 CHECK(EVAS_IMAGE_CLASS, Evas_Image_Data, 736 CHECK(EVAS_IMAGE_CLASS, Evas_Image_Data,
737 ENFN->image_free(ENDT, data->engine_data)) 737 ENFN->image_free(ENDT, data->engine_data))
738 else CHECK(EFL_CANVAS_IMAGE_CLASS, Evas_Image_Data,
739 ENFN->image_free(ENDT, data->engine_data))
740 else CHECK(EFL_CANVAS_SCENE3D_CLASS, Evas_Image_Data,
741 ENFN->image_free(ENDT, data->engine_data))
742 else CHECK(EVAS_VG_CLASS, Evas_VG_Data, 738 else CHECK(EVAS_VG_CLASS, Evas_VG_Data,
743 obj->layer->evas->engine.func->ector_free(data->engine_data)) 739 obj->layer->evas->engine.func->ector_free(data->engine_data))
744 else CHECK(EFL_CANVAS_POLYGON_CLASS, Efl_Canvas_Polygon_Data, 740 else CHECK(EFL_CANVAS_POLYGON_CLASS, Efl_Canvas_Polygon_Data,