Remove unnecessary code for checking evas engine 45/140345/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 18 Jul 2017 10:10:32 +0000 (19:10 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Sun, 23 Jul 2017 23:57:30 +0000 (08:57 +0900)
Change-Id: I16f247d0fb74792b1966f386bc54c262bdad0ce8
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/sclcoreui-efl.cpp

index bea0d01..8a2d07b 100644 (file)
@@ -46,7 +46,6 @@ struct WaylandKeyboard
 {
     Ecore_Evas *ee;
     Ecore_Wl_Window *wl_win;
-    const char *ee_engine;
 
     struct wl_surface *surface;
     struct wl_input_panel *ip;
@@ -378,45 +377,10 @@ _wayland_setup(struct WaylandKeyboard *wlkb, Evas_Object *main_window)
 
     return true;
 }
-
-static Eina_Bool
-check_evas_engine(struct WaylandKeyboard *wlkb)
-{
-    Eina_Bool ret = EINA_FALSE;
-    const char *env = getenv("ECORE_EVAS_ENGINE");
-
-    if (!env) {
-        if (ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_WAYLAND_SHM)) {
-            env = "wayland_shm";
-        } else if (ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_WAYLAND_EGL)) {
-            env = "wayland_egl";
-        } else {
-            LOGW("ERROR: Ecore_Evas does must be compiled with support for Wayland engines\n");
-            goto err;
-        }
-    } else if (strcmp(env, "wayland_shm") != 0 && strcmp(env, "wayland_egl") != 0) {
-        LOGW("ERROR: ECORE_EVAS_ENGINE must be set to either 'wayland_shm' or 'wayland_egl'\n");
-        goto err;
-    }
-
-    wlkb->ee_engine = env;
-    ret = EINA_TRUE;
-
-err:
-    return ret;
-}
 #endif
 
 int CSCLCoreUIEFL::create(void *data)
 {
-#ifdef WAYLAND
-    if (!check_evas_engine(&wlkb)) {
-        LOGW("_wlkb_check_evas_engine error!\n");
-        return -1;
-    }
-    LOGD("Selected engine: '%s'\n", wlkb.ee_engine);
-#endif
-
     elm_config_accel_preference_set("3d");
     elm_policy_set(ELM_POLICY_THROTTLE, ELM_POLICY_THROTTLE_NEVER);