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
This commit is contained in:
Jean-Philippe Andre 2016-05-09 11:46:11 +09:00
parent 3787d33992
commit 290b3d8926
1 changed files with 0 additions and 4 deletions

View File

@ -735,10 +735,6 @@ _image_data_unset(Evas_Object_Protected_Data *obj, Eina_List **list)
}
CHECK(EVAS_IMAGE_CLASS, Evas_Image_Data,
ENFN->image_free(ENDT, data->engine_data))
else CHECK(EFL_CANVAS_IMAGE_CLASS, Evas_Image_Data,
ENFN->image_free(ENDT, data->engine_data))
else CHECK(EFL_CANVAS_SCENE3D_CLASS, Evas_Image_Data,
ENFN->image_free(ENDT, data->engine_data))
else CHECK(EVAS_VG_CLASS, Evas_VG_Data,
obj->layer->evas->engine.func->ector_free(data->engine_data))
else CHECK(EFL_CANVAS_POLYGON_CLASS, Efl_Canvas_Polygon_Data,