]> granicus.if.org Git - graphviz/commitdiff
dotgen leader_of: remove unused 'g' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 12 Jul 2022 03:57:46 +0000 (20:57 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 17 Jul 2022 04:50:09 +0000 (21:50 -0700)
lib/dotgen/class2.c

index 6fb967a7368e2355af7f76695792f8038c5be4f4..5bf697b68a64b950d925c4e404df20679653ded5 100644 (file)
@@ -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;