diff options
author | Carl Worth <cworth@cworth.org> | 2008-02-16 13:17:49 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2008-02-20 04:04:04 -0800 |
commit | 770b058c9e53c6d0e3a3f600cd5a9631eee39dff (patch) | |
tree | 50e679bb7caf526e082c88c2cf6122d4ca441429 /src/cairo-slope.c | |
parent | 2d22d698d32575fd883d2be072c041709254c86d (diff) | |
download | cairo-770b058c9e53c6d0e3a3f600cd5a9631eee39dff.tar.gz |
Remove _cairo_slope_[counter_]clockwise
These two functions were hiding away some important details
about strictness of inequalities. Also, the callers differ
on the strictness they need. Everything is cleaner and more
flexible by making the callers just call _cairo_slope_compare
directly.
Diffstat (limited to 'src/cairo-slope.c')
-rw-r--r-- | src/cairo-slope.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/cairo-slope.c b/src/cairo-slope.c index af97a6399..d3f0db42e 100644 --- a/src/cairo-slope.c +++ b/src/cairo-slope.c @@ -106,26 +106,3 @@ _cairo_slope_compare (cairo_slope_t *a, cairo_slope_t *b) /* Finally, for identical slopes, we obviously return 0. */ return 0; } - -/* XXX: It might be cleaner to move away from usage of - _cairo_slope_clockwise/_cairo_slope_counter_clockwise in favor of - directly using _cairo_slope_compare. -*/ - -/* Is a clockwise of b? - * - * Note: The strict equality here is not significant in and of itself, - * but there are functions up above that are sensitive to it, - * (cf. _cairo_pen_find_active_cw_vertex_index). - */ -int -_cairo_slope_clockwise (cairo_slope_t *a, cairo_slope_t *b) -{ - return _cairo_slope_compare (a, b) < 0; -} - -int -_cairo_slope_counter_clockwise (cairo_slope_t *a, cairo_slope_t *b) -{ - return ! _cairo_slope_clockwise (a, b); -} |