]> granicus.if.org Git - graphviz/commitdiff
edge_in_layer: remove unused 'g' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 7 Nov 2021 01:31:21 +0000 (18:31 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 10 Nov 2021 05:59:31 +0000 (21:59 -0800)
lib/common/emit.c

index 43b2210775d80af8829fe27657d075371170d57a..c3d1c6f81e21c544da4c2c69dd419fe9b3a1b94f 100644 (file)
@@ -1719,7 +1719,7 @@ static bool node_in_layer(GVJ_t *job, graph_t * g, node_t * n)
     return false;
 }
 
-static bool edge_in_layer(GVJ_t *job, graph_t * g, edge_t * e)
+static bool edge_in_layer(GVJ_t *job, edge_t * e)
 {
     char *pe, *pn;
     int cnt;
@@ -2832,7 +2832,7 @@ static void emit_edge(GVJ_t * job, edge_t * e)
     char **sp;
     char *p;
 
-    if (edge_in_box(e, job->clip) && edge_in_layer(job, agraphof(aghead(e)), e) ) {
+    if (edge_in_box(e, job->clip) && edge_in_layer(job, e) ) {
 
        s = malloc(strlen(agnameof(agtail(e))) + 2 + strlen(agnameof(aghead(e))) + 1);
        strcpy(s,agnameof(agtail(e)));