summaryrefslogtreecommitdiff
path: root/src/cairo-pen.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-07-16 09:25:38 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-08-16 15:20:25 +0100
commit4e39e30d83fc1866a44f0b746c406ee2efb3bf6a (patch)
tree3fefcf904a0c33e0ab75c355752cc704434bd571 /src/cairo-pen.c
parentb72b06cc222d88015ce78a5cddf061e903d032b5 (diff)
downloadcairo-4e39e30d83fc1866a44f0b746c406ee2efb3bf6a.tar.gz
[cairo-pen] Remove status from _cairo_pen_find_active_vertex_*()
This pair of functions unconditionally return SUCCESS, so remove the status return and supporting tests from their callers.
Diffstat (limited to 'src/cairo-pen.c')
-rw-r--r--src/cairo-pen.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/cairo-pen.c b/src/cairo-pen.c
index 9960f0e9b..0ff01f378 100644
--- a/src/cairo-pen.c
+++ b/src/cairo-pen.c
@@ -308,7 +308,7 @@ _cairo_pen_compute_slopes (cairo_pen_t *pen)
* counterclockwise order. However, for this function, we care
* strongly about which vertex is returned.
*/
-cairo_status_t
+void
_cairo_pen_find_active_cw_vertex_index (cairo_pen_t *pen,
cairo_slope_t *slope,
int *active)
@@ -324,8 +324,6 @@ _cairo_pen_find_active_cw_vertex_index (cairo_pen_t *pen,
assert (i < pen->num_vertices);
*active = i;
-
- return CAIRO_STATUS_SUCCESS;
}
/* Find active pen vertex for counterclockwise edge of stroke at the given slope.
@@ -333,7 +331,7 @@ _cairo_pen_find_active_cw_vertex_index (cairo_pen_t *pen,
* NOTE: The behavior of this function is sensitive to the sense of
* the inequality within _cairo_slope_clockwise/_cairo_slope_counter_clockwise.
*/
-cairo_status_t
+void
_cairo_pen_find_active_ccw_vertex_index (cairo_pen_t *pen,
cairo_slope_t *slope,
int *active)
@@ -352,8 +350,6 @@ _cairo_pen_find_active_ccw_vertex_index (cairo_pen_t *pen,
}
*active = i;
-
- return CAIRO_STATUS_SUCCESS;
}
static void
@@ -388,11 +384,9 @@ _cairo_pen_stroke_spline_half (cairo_pen_t *pen,
final_slope.dy = -final_slope.dy;
}
- status = _cairo_pen_find_active_cw_vertex_index (pen,
- &initial_slope,
- &active);
- if (status)
- return status;
+ _cairo_pen_find_active_cw_vertex_index (pen,
+ &initial_slope,
+ &active);
i = start;
while (i != stop) {