From 4084f00d1d7be89726806e529dc86baccc9e8499 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 11 Jul 2022 20:28:53 -0700 Subject: [PATCH] gvc gvrender_ellipse: removed unused 'n' parameter --- lib/common/arrows.c | 2 +- lib/common/emit.c | 2 +- lib/common/shapes.c | 6 +++--- lib/gvc/gvcproc.h | 2 +- lib/gvc/gvrender.c | 3 +-- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/common/arrows.c b/lib/common/arrows.c index a9394882c..515a35c1b 100644 --- a/lib/common/arrows.c +++ b/lib/common/arrows.c @@ -647,7 +647,7 @@ static void arrow_type_dot(GVJ_t * job, pointf p, pointf u, double arrowsize, do AF[0].y = p.y + u.y / 2. - r; AF[1].x = p.x + u.x / 2. + r; AF[1].y = p.y + u.y / 2. + r; - gvrender_ellipse(job, AF, 2, !(flag & ARR_MOD_OPEN)); + gvrender_ellipse(job, AF, !(flag & ARR_MOD_OPEN)); } diff --git a/lib/common/emit.c b/lib/common/emit.c index e5cb50fd2..99ccce65a 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1488,7 +1488,7 @@ static void emit_xdot (GVJ_t * job, xdot* xd) pts[0].y = op->op.u.ellipse.y - op->op.u.ellipse.h; pts[1].x = op->op.u.ellipse.x + op->op.u.ellipse.w; pts[1].y = op->op.u.ellipse.y + op->op.u.ellipse.h; - gvrender_ellipse(job, pts, 2, op->op.kind == xd_filled_ellipse ? filled : 0); + gvrender_ellipse(job, pts, op->op.kind == xd_filled_ellipse ? filled : 0); } break; case xd_filled_polygon : diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 332745a1f..18009fd9b 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -2882,7 +2882,7 @@ static void poly_gencode(GVJ_t * job, node_t * n) agerr (AGPREV, "in node %s\n", agnameof(n)); filled = 0; } - gvrender_ellipse(job, AF, sides, filled); + gvrender_ellipse(job, AF, filled); if (style & DIAGONALS) { Mcircle_hack(job, n); } @@ -2934,7 +2934,7 @@ static void poly_gencode(GVJ_t * job, node_t * n) agerr (AGPREV, "in node %s\n", agnameof(n)); filled = 0; } - gvrender_ellipse(job, AF, sides, filled); + gvrender_ellipse(job, AF, filled); if (style & DIAGONALS) { Mcircle_hack(job, n); } @@ -3157,7 +3157,7 @@ static void point_gencode(GVJ_t * job, node_t * n) AF[i].x = P.x + ND_coord(n).x; AF[i].y = P.y + ND_coord(n).y; } - gvrender_ellipse(job, AF, sides, filled); + gvrender_ellipse(job, AF, filled); /* fill innermost periphery only */ filled = false; } diff --git a/lib/gvc/gvcproc.h b/lib/gvc/gvcproc.h index edcf5485b..6e0a65954 100644 --- a/lib/gvc/gvcproc.h +++ b/lib/gvc/gvcproc.h @@ -110,7 +110,7 @@ void gvrender_set_gradient_vals (GVJ_t * job, char *stopcolor, int angle, float frac); void gvrender_set_style(GVJ_t * job, char **s); - void gvrender_ellipse(GVJ_t * job, pointf * AF, int n, int filled); + void gvrender_ellipse(GVJ_t * job, pointf * AF, int filled); void gvrender_polygon(GVJ_t* job, pointf* af, int n, int filled); void gvrender_box(GVJ_t * job, boxf BF, int filled); void gvrender_beziercurve(GVJ_t * job, pointf * AF, int n, diff --git a/lib/gvc/gvrender.c b/lib/gvc/gvrender.c index 1a16e63da..963fe44bf 100644 --- a/lib/gvc/gvrender.c +++ b/lib/gvc/gvrender.c @@ -521,8 +521,7 @@ void gvrender_set_style(GVJ_t * job, char **s) } } -void gvrender_ellipse(GVJ_t * job, pointf * pf, int n, int filled) -{ +void gvrender_ellipse(GVJ_t *job, pointf *pf, int filled) { gvrender_engine_t *gvre = job->render.engine; if (gvre) { -- 2.40.0