summaryrefslogtreecommitdiff
path: root/src/cairo-hull.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-10-09 11:16:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-10-10 14:21:51 +0100
commit7758e56d0c96fd113a12b2adc92c783e962feebf (patch)
tree6f2851e5c5c11994f708f247d5a822f6ea937736 /src/cairo-hull.c
parent1dabfc2b271a57b4eaa13922a031ccd38a586dd1 (diff)
downloadcairo-7758e56d0c96fd113a12b2adc92c783e962feebf.tar.gz
[cairo-hull] Remove a couple of redundant status returns.
Those two functions unconditionally returned success, so change the return to void.
Diffstat (limited to 'src/cairo-hull.c')
-rw-r--r--src/cairo-hull.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cairo-hull.c b/src/cairo-hull.c
index 9eed671f5..d4e4af834 100644
--- a/src/cairo-hull.c
+++ b/src/cairo-hull.c
@@ -142,7 +142,7 @@ _cairo_hull_next_valid (cairo_hull_t *hull, int num_hull, int index)
return index;
}
-static cairo_status_t
+static void
_cairo_hull_eliminate_concave (cairo_hull_t *hull, int num_hull)
{
int i, j, k;
@@ -159,7 +159,7 @@ _cairo_hull_eliminate_concave (cairo_hull_t *hull, int num_hull)
/* Is the angle formed by ij and jk concave? */
if (_cairo_slope_compare (&slope_ij, &slope_jk) >= 0) {
if (i == k)
- return CAIRO_STATUS_SUCCESS;
+ return;
hull[j].discard = 1;
j = i;
i = _cairo_hull_prev_valid (hull, num_hull, j);
@@ -169,11 +169,9 @@ _cairo_hull_eliminate_concave (cairo_hull_t *hull, int num_hull)
k = _cairo_hull_next_valid (hull, num_hull, j);
}
} while (j != 0);
-
- return CAIRO_STATUS_SUCCESS;
}
-static cairo_status_t
+static void
_cairo_hull_to_pen (cairo_hull_t *hull, cairo_pen_vertex_t *vertices, int *num_vertices)
{
int i, j = 0;
@@ -185,8 +183,6 @@ _cairo_hull_to_pen (cairo_hull_t *hull, cairo_pen_vertex_t *vertices, int *num_v
}
*num_vertices = j;
-
- return CAIRO_STATUS_SUCCESS;
}
/* Given a set of vertices, compute the convex hull using the Graham