From e00424f4dde52aaad55bb9526fd0e2408d46ba48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 10 Aug 2023 15:22:32 +0200 Subject: [PATCH] Remove unused _clutter_bezier_clone_and_move Never used in mutter AFAICT. Part-of: --- clutter/clutter/clutter-bezier.c | 12 ------------ clutter/clutter/clutter-bezier.h | 4 ---- 2 files changed, 16 deletions(-) diff --git a/clutter/clutter/clutter-bezier.c b/clutter/clutter/clutter-bezier.c index 55f94f3ac..f56ee3c79 100644 --- a/clutter/clutter/clutter-bezier.c +++ b/clutter/clutter/clutter-bezier.c @@ -117,18 +117,6 @@ _clutter_bezier_free (ClutterBezier * b) } } -ClutterBezier * -_clutter_bezier_clone_and_move (const ClutterBezier *b, gint x, gint y) -{ - ClutterBezier * b2 = _clutter_bezier_new (); - memcpy (b2, b, sizeof (ClutterBezier)); - - b2->dx += x; - b2->dy += y; - - return b2; -} - #ifdef CBZ_L2T_INTERPOLATION /* * L is relative advance along the bezier curve from interval <0,1> diff --git a/clutter/clutter/clutter-bezier.h b/clutter/clutter/clutter-bezier.h index 0549d6f58..b9a412a35 100644 --- a/clutter/clutter/clutter-bezier.h +++ b/clutter/clutter/clutter-bezier.h @@ -40,10 +40,6 @@ ClutterBezier *_clutter_bezier_new (void); void _clutter_bezier_free (ClutterBezier * b); -ClutterBezier *_clutter_bezier_clone_and_move (const ClutterBezier *b, - gint x, - gint y); - void _clutter_bezier_advance (const ClutterBezier *b, gint L, ClutterKnot *knot);