From: Emil Velikov Date: Fri, 1 Sep 2017 10:26:11 +0000 (+0100) Subject: wayland-drm: remove unused wayland_drm_buffer_get_{format,buffer} X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15a6ebdfbba3b378868aa63f134fc1f6fd3d43be;p=mesa.git wayland-drm: remove unused wayland_drm_buffer_get_{format,buffer} Unused anywhere throughout the codebase. We could start using it, although that contradicts to an evil plan* of mine. * Only wayland servers will make use of the static library, providing actual distinction between server vs client. Signed-off-by: Emil Velikov Reviewed-by: Daniel Stone --- diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c index 4fc12521d24..fc33e4d8fc9 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.c +++ b/src/egl/wayland/wayland-drm/wayland-drm.c @@ -292,15 +292,3 @@ wayland_drm_uninit(struct wl_drm *drm) free(drm); } - -uint32_t -wayland_drm_buffer_get_format(struct wl_drm_buffer *buffer) -{ - return buffer->format; -} - -void * -wayland_drm_buffer_get_buffer(struct wl_drm_buffer *buffer) -{ - return buffer->driver_buffer; -} diff --git a/src/egl/wayland/wayland-drm/wayland-drm.h b/src/egl/wayland/wayland-drm/wayland-drm.h index 72575d81cca..38f711e067b 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.h +++ b/src/egl/wayland/wayland-drm/wayland-drm.h @@ -38,10 +38,4 @@ wayland_drm_init(struct wl_display *display, char *device_name, void wayland_drm_uninit(struct wl_drm *drm); -uint32_t -wayland_drm_buffer_get_format(struct wl_drm_buffer *buffer); - -void * -wayland_drm_buffer_get_buffer(struct wl_drm_buffer *buffer); - #endif