[cairo] [PATCH 05/71] drm: dropped unused _cairo_drm_size_is_valid()

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Mon Apr 17 16:56:44 UTC 2017


Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt at gr13.net>
---
 src/drm/cairo-drm-private.h |  4 ----
 src/drm/cairo-drm.c         | 13 -------------
 2 files changed, 17 deletions(-)

diff --git a/src/drm/cairo-drm-private.h b/src/drm/cairo-drm-private.h
index 2db7f38d6..2c621a0a8 100644
--- a/src/drm/cairo-drm-private.h
+++ b/src/drm/cairo-drm-private.h
@@ -231,8 +231,4 @@ slim_hidden_proto (cairo_drm_device_get_for_fd);
 
 slim_hidden_proto (cairo_drm_surface_create_for_name);
 
-cairo_private cairo_bool_t
-_cairo_drm_size_is_valid (cairo_device_t *abstract_device,
-			  int width, int height);
-
 #endif /* CAIRO_DRM_PRIVATE_H */
diff --git a/src/drm/cairo-drm.c b/src/drm/cairo-drm.c
index 661e181b6..ad8c827bf 100644
--- a/src/drm/cairo-drm.c
+++ b/src/drm/cairo-drm.c
@@ -375,16 +375,3 @@ cairo_drm_device_throttle (cairo_device_t *abstract_device)
     if (unlikely (status))
 	_cairo_status_set_error (&device->base.status, status);
 }
-
-cairo_bool_t
-_cairo_drm_size_is_valid (cairo_device_t *abstract_device,
-			  int width, int height)
-{
-    cairo_drm_device_t *device = (cairo_drm_device_t *) abstract_device;
-
-    if (unlikely (device->base.status))
-	return FALSE;
-
-    return width  <= device->max_surface_size &&
-	   height <= device->max_surface_size;
-}
-- 
2.11.0.rc0.7.gbe5a750



More information about the cairo mailing list