From d1bb026195427d769dd924f5703372a28e5e71ce Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Mon, 27 Nov 2017 15:27:23 -0600 Subject: [PATCH] wayland_shm: remove useless wrapper function This no longer has multiple call sites. Goodbye. --- .../evas/engines/wayland_shm/evas_dmabuf.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c index 162240db1b..04dd30892d 100644 --- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c @@ -18,9 +18,6 @@ struct _Dmabuf_Surface Eina_Bool alpha : 1; }; -static void _internal_evas_dmabuf_surface_destroy(Dmabuf_Surface *surface); -static void _evas_dmabuf_surface_destroy(Surface *s); - static void _evas_dmabuf_surface_reconfigure(Surface *s, int w, int h, uint32_t flags EINA_UNUSED, Eina_Bool force) { @@ -154,9 +151,13 @@ _evas_dmabuf_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count) } static void -_internal_evas_dmabuf_surface_destroy(Dmabuf_Surface *surface) +_evas_dmabuf_surface_destroy(Surface *s) { Ecore_Wl2_Buffer *b; + Dmabuf_Surface *surface; + + if (!s) return; + surface = s->surf.dmabuf; EINA_LIST_FREE(surface->buffers, b) ecore_wl2_buffer_destroy(b); @@ -164,14 +165,6 @@ _internal_evas_dmabuf_surface_destroy(Dmabuf_Surface *surface) free(surface); } -static void -_evas_dmabuf_surface_destroy(Surface *s) -{ - if (!s) return; - - _internal_evas_dmabuf_surface_destroy(s->surf.dmabuf); -} - Eina_Bool _evas_dmabuf_surface_create(Surface *s) {