diff options
author | Guillermo Rodriguez <guillerodriguez.dev@gmail.com> | 2017-07-04 12:19:37 +0200 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2017-08-21 16:29:10 -0700 |
commit | 339fe9a7689dd13626410afabb77b12ad0f9f7d2 (patch) | |
tree | 870925bf31505c2e545c3c7b22eea5203d06717d /src/cairo-surface.c | |
parent | 5ac7b3652d4d96bfdc5efe50c2540fb4eadeb7d9 (diff) | |
download | cairo-339fe9a7689dd13626410afabb77b12ad0f9f7d2.tar.gz |
Remove redundant check.
Spotted by David Kastrup <dak@gnu.org>.
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'src/cairo-surface.c')
-rw-r--r-- | src/cairo-surface.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cairo-surface.c b/src/cairo-surface.c index 5436ed960..6f25bd7c0 100644 --- a/src/cairo-surface.c +++ b/src/cairo-surface.c @@ -504,13 +504,9 @@ cairo_surface_create_similar (cairo_surface_t *other, return _cairo_surface_create_in_error (CAIRO_STATUS_SURFACE_FINISHED); if (unlikely (width < 0 || height < 0)) return _cairo_surface_create_in_error (CAIRO_STATUS_INVALID_SIZE); - 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; |