[cairo] [PATCH] Remove redundant check.

Guillermo Rodriguez guillerodriguez.dev at gmail.com
Tue Jul 4 10:19:37 UTC 2017


Spotted by David Kastrup <dak at gnu.org>.

---
 src/cairo-surface.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index fc5f876..44d8c75 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -508,9 +508,6 @@ cairo_surface_create_similar (cairo_surface_t  *other,
     if (unlikely (! CAIRO_CONTENT_VALID (content)))
 	return _cairo_surface_create_in_error (CAIRO_STATUS_INVALID_CONTENT);
 
-        if (unlikely (other->status))
-	return _cairo_surface_create_in_error (other->status);
-
     /* We inherit the device scale, so create a larger surface */
     width = width * other->device_transform.xx;
     height = height * other->device_transform.yy;
-- 
1.9.1



More information about the cairo mailing list