diff --git a/clutter/clutter/clutter-bezier.c b/clutter/clutter/clutter-bezier.c index 76cd4f7b6..55f94f3ac 100644 --- a/clutter/clutter/clutter-bezier.c +++ b/clutter/clutter/clutter-bezier.c @@ -480,34 +480,6 @@ _clutter_bezier_init (ClutterBezier *b, #endif } -/* - * Moves a control point at indx to location represented by knot - */ -void -_clutter_bezier_adjust (ClutterBezier * b, ClutterKnot * knot, guint indx) -{ - guint x[4], y[4]; - - g_assert (indx < 4); - - x[0] = b->dx; - y[0] = b->dy; - - x[1] = b->cx / 3 + x[0]; - y[1] = b->cy / 3 + y[0]; - - x[2] = b->bx / 3 + b->cx + x[1]; - y[2] = b->by / 3 + b->cy + y[1]; - - x[3] = b->ax + x[0] + b->cx + b->bx; - y[3] = b->ay + y[0] + b->cy + b->by; - - x[indx] = knot->x; - y[indx] = knot->y; - - _clutter_bezier_init (b, x[0], y[0], x[1], y[1], x[2], y[2], x[3], y[3]); -} - guint _clutter_bezier_get_length (const ClutterBezier *b) { diff --git a/clutter/clutter/clutter-bezier.h b/clutter/clutter/clutter-bezier.h index 88a34448d..0549d6f58 100644 --- a/clutter/clutter/clutter-bezier.h +++ b/clutter/clutter/clutter-bezier.h @@ -54,10 +54,6 @@ void _clutter_bezier_init (ClutterBezier *b, gint x_2, gint y_2, gint x_3, gint y_3); -void _clutter_bezier_adjust (ClutterBezier *b, - ClutterKnot *knot, - guint indx); - guint _clutter_bezier_get_length (const ClutterBezier *b); G_END_DECLS