[gtk/wip/matthiasc/lottie-stroke: 59/60] cleanups
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/lottie-stroke: 59/60] cleanups
- Date: Mon, 30 Nov 2020 19:40:20 +0000 (UTC)
commit fdb126a28ff553187d4075207e3547203b8fe685
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 30 02:31:02 2020 -0500
cleanups
gsk/gskpathstroke.c | 24 ------------------------
1 file changed, 24 deletions(-)
---
diff --git a/gsk/gskpathstroke.c b/gsk/gskpathstroke.c
index 77a1d29813..09a6481175 100644
--- a/gsk/gskpathstroke.c
+++ b/gsk/gskpathstroke.c
@@ -332,30 +332,6 @@ get_cubic_extrema (float pa,
return n_roots;
}
-static int
-get_cubic_inflections (float pa,
- float pb,
- float pc,
- float pd,
- float roots[1])
-{
- float a, b;
- float t;
- int n_roots = 0;
-
- a = 3 * (pd - 3*pc + 3*pb - pa);
- b = 6 * (pc - 2*pb + pa);
-
- if (fabs (a) > 0.0001)
- {
- t = -b / (2 * a);
- if (acceptable (t))
- roots[n_roots++] = t;
- }
-
- return n_roots;
-}
-
/* Compute q = p + d * n */
static void
scale_point (const graphene_point_t *p,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]