From 1dd0199ad22c26ad560a2b32d300eef2f2e6da71 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 22 Jul 2022 17:45:45 -0700 Subject: [PATCH] neatogen mkConstraintG: remove unused 'g' parameter --- lib/neatogen/constraint.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/neatogen/constraint.c b/lib/neatogen/constraint.c index 1cc689774..ebf8a8f1e 100644 --- a/lib/neatogen/constraint.c +++ b/lib/neatogen/constraint.c @@ -270,9 +270,7 @@ static graph_t *mkNConstraintG(graph_t * g, Dt_t * list, } /* mkConstraintG: */ -static graph_t *mkConstraintG(graph_t * g, Dt_t * list, - intersectfn intersect, distfn dist) -{ +static graph_t *mkConstraintG(Dt_t * list, intersectfn intersect, distfn dist) { nitem *p; nitem *nxt = NULL; nitem *nxp; @@ -402,7 +400,7 @@ static void constrainX(graph_t* g, nitem* nlist, int nnodes, intersectfn ifn, p++; } if (ortho) - cg = mkConstraintG(g, list, ifn, distX); + cg = mkConstraintG(list, ifn, distX); else cg = mkNConstraintG(g, list, ifn, distX); rank(cg, 2, INT_MAX); @@ -440,7 +438,7 @@ static void constrainY(graph_t* g, nitem* nlist, int nnodes, intersectfn ifn, p++; } if (ortho) - cg = mkConstraintG(g, list, ifn, distY); + cg = mkConstraintG(list, ifn, distY); else cg = mkNConstraintG(g, list, ifn, distY); rank(cg, 2, INT_MAX); -- 2.40.0