[Mesa-dev] [PATCH 2/9] wayland-drm: remove unused wayland_drm_buffer_get_{format, buffer}

Emil Velikov emil.l.velikov at gmail.com
Thu Sep 7 18:04:59 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

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 <emil.velikov at collabora.com>
---
 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.14.1



More information about the mesa-dev mailing list