diff options
author | Benjamin Otte <otte@redhat.com> | 2011-02-18 18:23:25 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-02-18 18:23:35 +0100 |
commit | badf32290ff894351e0f6879aafeac6db8e0d846 (patch) | |
tree | 9b0d7fa4e14e5b1cc6ed2af8de62e518f4a16a0a | |
parent | 3b3cfbfffe9e9acd1da753600c1e00044f065760 (diff) |
surface: Don't be nice to people setting internal error codes
Just DIE DIE DIE in the _cairo_status_set_status() assertion.
-rw-r--r-- | src/cairo-surface.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cairo-surface.c b/src/cairo-surface.c index b9d9e1661..4c6dc7677 100644 --- a/src/cairo-surface.c +++ b/src/cairo-surface.c @@ -169,12 +169,6 @@ cairo_status_t _cairo_surface_set_error (cairo_surface_t *surface, cairo_status_t status) { - if (status == CAIRO_INT_STATUS_NOTHING_TO_DO) - status = CAIRO_STATUS_SUCCESS; - - if (status == CAIRO_STATUS_SUCCESS || status >= CAIRO_INT_STATUS_UNSUPPORTED) - return status; - /* Don't overwrite an existing error. This preserves the first * error, which is the most significant. */ _cairo_status_set_error (&surface->status, status); |