summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-08 11:15:04 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-08 15:12:51 -0600
commitb5674b788539b9e0aa5ed1e11fe4d38de9a4772c (patch)
tree6d589d5d0db1f774b49be01b967ae8e4ae7e7caa
parent566c3f328a2cdeb55f78b5efa0efb8698ec6ae3b (diff)
wayland_shm: Remove useless function
This serves no purpose anymore.
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_engine.h2
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_outbuf.c8
2 files changed, 1 insertions, 9 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.h b/src/modules/evas/engines/wayland_shm/evas_engine.h
index a3da8fbf75..3744599ed3 100644
--- a/src/modules/evas/engines/wayland_shm/evas_engine.h
+++ b/src/modules/evas/engines/wayland_shm/evas_engine.h
@@ -155,6 +155,4 @@ void _evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int
155void _evas_surface_damage(struct wl_surface *s, int compositor_version, int w, int h, Eina_Rectangle *rects, unsigned int count); 155void _evas_surface_damage(struct wl_surface *s, int compositor_version, int w, int h, Eina_Rectangle *rects, unsigned int count);
156void _evas_outbuf_redraws_clear(Outbuf *ob); 156void _evas_outbuf_redraws_clear(Outbuf *ob);
157 157
158Eina_Bool _evas_surface_init(Surface *s, int w, int h, int num_buf);
159
160#endif 158#endif
diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index c962e37905..8cdd70da18 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -9,12 +9,6 @@
9#define GREEN_MASK 0x00ff00 9#define GREEN_MASK 0x00ff00
10#define BLUE_MASK 0x0000ff 10#define BLUE_MASK 0x0000ff
11 11
12Eina_Bool
13_evas_surface_init(Surface *s, int w, int h, int num_buf)
14{
15 return _evas_dmabuf_surface_create(s, w, h, num_buf);
16}
17
18static Surface * 12static Surface *
19_evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob) 13_evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob)
20{ 14{
@@ -26,7 +20,7 @@ _evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob)
26 out->info = info; 20 out->info = info;
27 out->ob = ob; 21 out->ob = ob;
28 22
29 if (_evas_surface_init(out, w, h, ob->num_buff)) return out; 23 if (_evas_dmabuf_surface_create(out, w, h, ob->num_buff)) return out;
30 24
31 free(out); 25 free(out);
32 return NULL; 26 return NULL;