]> granicus.if.org Git - graphviz/commitdiff
fdpgen compoundEdges: remove unused 'P' local
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 23 Nov 2022 04:25:48 +0000 (20:25 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 23 Nov 2022 04:25:48 +0000 (20:25 -0800)
lib/fdpgen/clusteredges.c

index 9528b6e69281eaa0bf8ee9a7f66535a3f29ad68a..3135a4b9474f3a47b7f422de3038e2cdcfb8fa89 100644 (file)
@@ -258,7 +258,6 @@ int compoundEdges(graph_t * g, expand_t* pm, int edgetype)
     edge_t *e;
     edge_t *e0;
     objlist *objl = NULL;
-    path *P = NULL;
     vconfig_t *vconfig;
     int rv = 0;
 
@@ -266,10 +265,6 @@ int compoundEdges(graph_t * g, expand_t* pm, int edgetype)
        for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
            head = aghead(e);
            if (n == head && ED_count(e)) {     /* self arc */
-               if (!P) {
-                   P = NEW(path);
-                   P->boxes = N_NEW(agnnodes(g) + 20 * 2 * 9, boxf);
-               }
                makeSelfArcs(e, GD_nodesep(g));
            } else if (ED_count(e)) {
                objl = objectList(e, pm);
@@ -309,9 +304,5 @@ int compoundEdges(graph_t * g, expand_t* pm, int edgetype)
        }
     }
     freeObjlist(objl);
-    if (P) {
-       free(P->boxes);
-       free(P);
-    }
     return rv;
 }