From 15a6ebdfbba3b378868aa63f134fc1f6fd3d43be Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 1 Sep 2017 11:26:11 +0100 Subject: [PATCH] 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 --- src/egl/wayland/wayland-drm/wayland-drm.c | 12 ------------ src/egl/wayland/wayland-drm/wayland-drm.h | 6 ------ 2 files changed, 18 deletions(-) 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 -- 2.30.2