From 03767bb8b51ca0b7d1de8774c823dec4d5c8c3e1 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 30 Oct 2021 20:30:22 -0700 Subject: [PATCH] makeMultiSpline: remove unused 'g' parameter --- lib/neatogen/multispline.c | 3 +-- lib/neatogen/multispline.h | 2 +- lib/neatogen/neatosplines.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/neatogen/multispline.c b/lib/neatogen/multispline.c index 4ca54e7de..67eb87970 100644 --- a/lib/neatogen/multispline.c +++ b/lib/neatogen/multispline.c @@ -1341,8 +1341,7 @@ triPath(tgraph * g, int n, int v0, int v1, PQ * pq) * so avoid in neato spline code. * Return 0 on success. */ -int makeMultiSpline(graph_t* g, edge_t* e, router_t * rtr, int doPolyline) -{ +int makeMultiSpline(edge_t* e, router_t * rtr, int doPolyline) { Ppolyline_t line = ED_path(e); node_t *t = agtail(e); node_t *h = aghead(e); diff --git a/lib/neatogen/multispline.h b/lib/neatogen/multispline.h index ec32fdbca..ae09b1a51 100644 --- a/lib/neatogen/multispline.h +++ b/lib/neatogen/multispline.h @@ -17,4 +17,4 @@ typedef struct router_s router_t; extern void freeRouter (router_t* rtr); extern router_t* mkRouter (Ppoly_t** obs, int npoly); -extern int makeMultiSpline(graph_t* g, edge_t* e, router_t * rtr, int); +extern int makeMultiSpline(edge_t* e, router_t * rtr, int); diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index a5f1571ee..48f760dc3 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -638,7 +638,7 @@ static int _spline_edges(graph_t * g, expand_t* pmargin, int edgetype) makeStraightEdge(g, e, edgetype, &sinfo); else { if (!rtr) rtr = mkRouter (obs, npoly); - fail = makeMultiSpline(g, e, rtr, edgetype == EDGETYPE_PLINE); + fail = makeMultiSpline(e, rtr, edgetype == EDGETYPE_PLINE); } if (!fail) continue; } -- 2.40.0