wayland_shm: Remove useless function

This serves no purpose anymore.
This commit is contained in:
Derek Foreman 2017-11-08 11:15:04 -06:00
parent 566c3f328a
commit b5674b7885
2 changed files with 1 additions and 9 deletions

View File

@ -155,6 +155,4 @@ void _evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int
void _evas_surface_damage(struct wl_surface *s, int compositor_version, int w, int h, Eina_Rectangle *rects, unsigned int count);
void _evas_outbuf_redraws_clear(Outbuf *ob);
Eina_Bool _evas_surface_init(Surface *s, int w, int h, int num_buf);
#endif

View File

@ -9,12 +9,6 @@
#define GREEN_MASK 0x00ff00
#define BLUE_MASK 0x0000ff
Eina_Bool
_evas_surface_init(Surface *s, int w, int h, int num_buf)
{
return _evas_dmabuf_surface_create(s, w, h, num_buf);
}
static Surface *
_evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob)
{
@ -26,7 +20,7 @@ _evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob)
out->info = info;
out->ob = ob;
if (_evas_surface_init(out, w, h, ob->num_buff)) return out;
if (_evas_dmabuf_surface_create(out, w, h, ob->num_buff)) return out;
free(out);
return NULL;