diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-07-16 09:40:47 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-08-16 15:20:06 +0100 |
commit | b72b06cc222d88015ce78a5cddf061e903d032b5 (patch) | |
tree | 37393934a9246c05676b641b406503cce9620a7f /src/cairo-pen.c | |
parent | e24969a94ac5670a13c2737db435ac7b5bebb19c (diff) | |
download | cairo-b72b06cc222d88015ce78a5cddf061e903d032b5.tar.gz |
[cairo-pen] Remove hard-coded CAIRO_STATUS_SUCCESS from _stroke_spline_half()
Remove the status return and update callers as
_cairo_pen_stroke_spline_half() unconditionally returned SUCCESS.
Diffstat (limited to 'src/cairo-pen.c')
-rw-r--r-- | src/cairo-pen.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/cairo-pen.c b/src/cairo-pen.c index 9392322d9..9960f0e9b 100644 --- a/src/cairo-pen.c +++ b/src/cairo-pen.c @@ -42,7 +42,7 @@ _cairo_pen_vertices_needed (double tolerance, double radius, cairo_matrix_t *mat static void _cairo_pen_compute_slopes (cairo_pen_t *pen); -static cairo_status_t +static void _cairo_pen_stroke_spline_half (cairo_pen_t *pen, cairo_spline_t *spline, cairo_direction_t dir, cairo_polygon_t *polygon); void @@ -356,14 +356,13 @@ _cairo_pen_find_active_ccw_vertex_index (cairo_pen_t *pen, return CAIRO_STATUS_SUCCESS; } -static cairo_status_t +static void _cairo_pen_stroke_spline_half (cairo_pen_t *pen, cairo_spline_t *spline, cairo_direction_t dir, cairo_polygon_t *polygon) { int i; - cairo_status_t status; int start, stop, step; int active = 0; cairo_point_t hull_point; @@ -416,8 +415,6 @@ _cairo_pen_stroke_spline_half (cairo_pen_t *pen, i += step; } } - - return CAIRO_STATUS_SUCCESS; } /* Compute outline of a given spline using the pen. @@ -443,13 +440,9 @@ _cairo_pen_stroke_spline (cairo_pen_t *pen, if (status) goto BAIL; - status = _cairo_pen_stroke_spline_half (pen, spline, CAIRO_DIRECTION_FORWARD, &polygon); - if (status) - goto BAIL; + _cairo_pen_stroke_spline_half (pen, spline, CAIRO_DIRECTION_FORWARD, &polygon); - status = _cairo_pen_stroke_spline_half (pen, spline, CAIRO_DIRECTION_REVERSE, &polygon); - if (status) - goto BAIL; + _cairo_pen_stroke_spline_half (pen, spline, CAIRO_DIRECTION_REVERSE, &polygon); _cairo_polygon_close (&polygon); status = _cairo_polygon_status (&polygon); |