From 905276403004f7b89eca99e31168604751d79ac0 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 30 Oct 2021 19:58:25 -0700 Subject: [PATCH] makeSelfEdge: remove unused 'P' parameter --- lib/common/render.h | 2 +- lib/common/splines.c | 2 +- lib/dotgen/dotsplines.c | 2 +- lib/neatogen/neatosplines.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/common/render.h b/lib/common/render.h index cddd3c826..81842ad73 100644 --- a/lib/common/render.h +++ b/lib/common/render.h @@ -120,7 +120,7 @@ extern "C" { RENDER_API void* init_xdot (Agraph_t* g); RENDER_API int initMapData (GVJ_t*, char*, char*, char*, char*, char*, void*); RENDER_API boolean isPolygon(node_t *); - RENDER_API void makeSelfEdge(path * P, edge_t * edges[], int ind, int cnt, + RENDER_API void makeSelfEdge(edge_t * edges[], int ind, int cnt, double sizex, double sizey, splineInfo * sinfo); RENDER_API textlabel_t *make_label(void *obj, char *str, int kind, double fontsize, char *fontname, char *fontcolor); RENDER_API bezier *new_spline(edge_t * e, int sz); diff --git a/lib/common/splines.c b/lib/common/splines.c index bdf005ab6..610f794f6 100644 --- a/lib/common/splines.c +++ b/lib/common/splines.c @@ -1186,7 +1186,7 @@ selfRightSpace (edge_t* e) * Perhaps for self-edges, the label should be centered. */ void -makeSelfEdge(path * P, edge_t * edges[], int ind, int cnt, double sizex, +makeSelfEdge(edge_t * edges[], int ind, int cnt, double sizex, double sizey, splineInfo * sinfo) { edge_t *e; diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index a4ae2f8a7..79dd7ba3f 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -505,7 +505,7 @@ static void _dot_splines(graph_t * g, int normalize) int dwny = ND_coord(n).y - ND_coord(GD_rank(g)[r+1].v[0]).y; sizey = MIN(upy, dwny); } - makeSelfEdge(P, edges, ind, cnt, sd.Multisep, sizey/2, &sinfo); + makeSelfEdge(edges, ind, cnt, sd.Multisep, sizey / 2, &sinfo); for (b = 0; b < cnt; b++) { e = edges[ind+b]; if (ED_label(e)) diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index 9c9a69196..0a54c6fa3 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -241,7 +241,7 @@ void makeSelfArcs(path * P, edge_t * e, int stepx) if (cnt == 1 || Concentrate) { edge_t *edges1[1]; edges1[0] = e; - makeSelfEdge(P, edges1, 0, 1, stepx, stepx, &sinfo); + makeSelfEdge(edges1, 0, 1, stepx, stepx, &sinfo); if (ED_label(e)) updateBB(agraphof(agtail(e)), ED_label(e)); makePortLabels(e); @@ -252,7 +252,7 @@ void makeSelfArcs(path * P, edge_t * e, int stepx) edges[i] = e; e = ED_to_virt(e); } - makeSelfEdge(P, edges, 0, cnt, stepx, stepx, &sinfo); + makeSelfEdge(edges, 0, cnt, stepx, stepx, &sinfo); for (i = 0; i < cnt; i++) { e = edges[i]; if (ED_label(e)) -- 2.40.0