summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2016-06-04 16:19:00 +0200
committerJean Guyomarc'h <jean@guyomarch.bzh>2016-06-04 16:53:34 +0200
commit088f4af9e7a341c1d3d7bff5cc961ec58d7f8db4 (patch)
tree6fde5bb9f095a938028454bd44be9b7c7052bd41 /src/lib
parent29be8f2819a384a86a46d4fd6ad924b573b207dd (diff)
elementary: remove redundant code
The same checks are performed later on. There is no use doing it twice. Only affects Cocoa windows.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/elm_win.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_win.c b/src/lib/elementary/elm_win.c
index 9ac7243c99..08755ff10a 100644
--- a/src/lib/elementary/elm_win.c
+++ b/src/lib/elementary/elm_win.c
@@ -5546,12 +5546,6 @@ elm_win_cocoa_window_get(const Evas_Object *obj)
5546 ELM_WIN_CHECK(obj) NULL; 5546 ELM_WIN_CHECK(obj) NULL;
5547 ELM_WIN_DATA_GET_OR_RETURN(obj, sd, NULL); 5547 ELM_WIN_DATA_GET_OR_RETURN(obj, sd, NULL);
5548 5548
5549 const char *engine_name = ecore_evas_engine_name_get(sd->ee);
5550 if (!engine_name) return NULL;
5551 if (strcmp(engine_name, "gl_cocoa") != 0 &&
5552 strcmp(engine_name, "opengl_cocoa") != 0)
5553 return NULL;
5554
5555 Ecore_Evas *ee = ecore_evas_ecore_evas_get(evas_object_evas_get(obj)); 5549 Ecore_Evas *ee = ecore_evas_ecore_evas_get(evas_object_evas_get(obj));
5556 return _elm_ee_cocoa_win_get(ee); 5550 return _elm_ee_cocoa_win_get(ee);
5557} 5551}