From: Matthew Fernandez Date: Tue, 12 Jul 2022 03:57:46 +0000 (-0700) Subject: dotgen leader_of: remove unused 'g' parameter X-Git-Tag: 5.0.1~40^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5c887a931e7359bc4e55f6da9b73882fdf623ec;p=graphviz dotgen leader_of: remove unused 'g' parameter --- diff --git a/lib/dotgen/class2.c b/lib/dotgen/class2.c index 6fb967a73..5bf697b68 100644 --- a/lib/dotgen/class2.c +++ b/lib/dotgen/class2.c @@ -51,9 +51,7 @@ static node_t *plain_vnode(graph_t *g) { return v; } -static node_t* -leader_of(graph_t * g, node_t * v) -{ +static node_t *leader_of(node_t * v) { graph_t *clust; node_t *rv; @@ -105,8 +103,8 @@ interclrep(graph_t * g, edge_t * e) node_t *t, *h; edge_t *ve; - t = leader_of(g, agtail(e)); - h = leader_of(g, aghead(e)); + t = leader_of(agtail(e)); + h = leader_of(aghead(e)); if (ND_rank(t) > ND_rank(h)) { node_t *t0 = t; t = h;