From 59e6772811df0c9fb271e3d4d0423f09da062890 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Mon, 2 Mar 2015 14:49:51 +0900 Subject: [PATCH] remove redundant code. it was for compatible for enventor v0.5.0 release. now we are on development stage. --- m4/efl_eo.m4 | 7 ------- src/lib/edj_viewer.c | 5 +---- src/lib/enventor_smart.c | 4 ---- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/m4/efl_eo.m4 b/m4/efl_eo.m4 index 1fee0bf..a3bd952 100644 --- a/m4/efl_eo.m4 +++ b/m4/efl_eo.m4 @@ -3,10 +3,3 @@ AC_DEFUN([EFL_ENABLE_EO_API_SUPPORT], [ AC_DEFINE([EFL_EO_API_SUPPORT], [1], [Enable access to unstable EFL Eo API]) ]) - -AC_DEFUN([EFL_ENABLE_EO_LATEST], -[ - AC_DEFINE([EO_LATEST], [0], [Enable access to unstable EFL Eo Latest API]) -]) - - diff --git a/src/lib/edj_viewer.c b/src/lib/edj_viewer.c index 04be065..9f15689 100644 --- a/src/lib/edj_viewer.c +++ b/src/lib/edj_viewer.c @@ -300,12 +300,9 @@ view_obj_idler_cb(void *data) elm_object_part_content_set(vd->base, "elm.swallow.content", vd->layout); elm_object_content_set(vd->scroller, vd->base); -#if EO_LATEST + Eina_Bool ret; if (eo_do_ret(vd->enventor, ret, enventor_obj_dummy_swallow_get())) -#else - if (eo_do(vd->enventor, enventor_obj_dummy_swallow_get())) -#endif dummy_obj_new(vd->layout); vd->idler = NULL; diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c index df31c0a..bda656e 100644 --- a/src/lib/enventor_smart.c +++ b/src/lib/enventor_smart.c @@ -606,12 +606,8 @@ enventor_object_add(Evas_Object *parent) EAPI Eina_Bool enventor_object_file_set(Evas_Object *obj, const char *file) { -#if EO_LATEST Eina_Bool ret; return eo_do_ret(obj, ret, efl_file_set(file, NULL)); -#else - return eo_do(obj, efl_file_set(file, NULL)); -#endif } #include "enventor_object.eo.c"