From: Matthew Fernandez Date: Sat, 23 Jul 2022 00:45:45 +0000 (-0700) Subject: neatogen mkConstraintG: remove unused 'g' parameter X-Git-Tag: 5.0.1~28^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1dd0199ad22c26ad560a2b32d300eef2f2e6da71;p=graphviz neatogen mkConstraintG: remove unused 'g' parameter --- 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);