diff options
author | Carl Worth <cworth@cworth.org> | 2009-07-27 15:45:15 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-07-27 15:45:15 -0700 |
commit | 5bed405b278a6b934369873f55117d497f69bc3a (patch) | |
tree | fbddb98bd269705d731d15e0d014747e64ae3c24 /src/cairo-spline.c | |
parent | 01acad1659caf766c57849f85dc3536fe2167608 (diff) |
Revert "[spline] Treat a straight spline as degenerate."
This reverts commit f3d265559a2f97152ce8f307ea3ce83463083088.
This commit was broken as verified by the curve-to-as-line-to test
case.
Diffstat (limited to 'src/cairo-spline.c')
-rw-r--r-- | src/cairo-spline.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cairo-spline.c b/src/cairo-spline.c index 8bebcb2a..45eedbd6 100644 --- a/src/cairo-spline.c +++ b/src/cairo-spline.c @@ -43,8 +43,6 @@ _cairo_spline_init (cairo_spline_t *spline, const cairo_point_t *a, const cairo_point_t *b, const cairo_point_t *c, const cairo_point_t *d) { - cairo_slope_t slope; - spline->add_point_func = add_point_func; spline->closure = closure; @@ -69,13 +67,6 @@ _cairo_spline_init (cairo_spline_t *spline, else _cairo_slope_init (&spline->final_slope, &spline->knots.a, &spline->knots.d); - _cairo_slope_init (&slope, &spline->knots.a, &spline->knots.d); - if (_cairo_slope_compare (&slope, &spline->initial_slope) == 0 && - _cairo_slope_compare (&slope, &spline->final_slope) == 0) - { - return FALSE; /* just a straight line... */ - } - return TRUE; } |