summaryrefslogtreecommitdiff
path: root/src/cairo-pen.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-07-16 09:40:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-08-16 15:20:06 +0100
commitb72b06cc222d88015ce78a5cddf061e903d032b5 (patch)
tree37393934a9246c05676b641b406503cce9620a7f /src/cairo-pen.c
parente24969a94ac5670a13c2737db435ac7b5bebb19c (diff)
downloadcairo-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.c15
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);