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

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Thu Jun 30 15:45:52 UTC 2016


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 2db7f38..2c621a0 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 661e181..ad8c827 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.6.4.442.g545299f



More information about the cairo mailing list