[PATCH] Remove redundant check.
Guillermo Rodriguez <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
Spotted by David Kastrup <[email protected]>. --- 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 -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo