]> granicus.if.org Git - graphviz/commitdiff
neatogen _spline_edges: remove unused 'P' local
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Dec 2022 20:53:54 +0000 (12:53 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Dec 2022 21:07:30 +0000 (13:07 -0800)
lib/neatogen/neatosplines.c

index cfeeb0c77497ec800c103b1c3bae3b113bf97e18..2030e45f4c79adffa5cf6965047c8bb7f90e6e7a 100644 (file)
@@ -545,7 +545,6 @@ static int _spline_edges(graph_t * g, expand_t* pmargin, int edgetype)
     Ppoly_t *obp;
     int cnt, i = 0, npoly;
     vconfig_t *vconfig = 0;
-    path *P = NULL;
     int useEdges = Nop > 1;
     int legal = 0;
 
@@ -614,10 +613,6 @@ static int _spline_edges(graph_t * g, expand_t* pmargin, int edgetype)
            } 
            else if (ED_count(e) == 0) continue;  /* only do representative */
            else if (n == head) {    /* self arc */
-               if (!P) {
-                   P = NEW(path);
-                   P->boxes = N_NEW(agnnodes(g) + 20 * 2 * 9, boxf);
-               }
                makeSelfArcs(e, GD_nodesep(g->root));
            } else if (vconfig) { /* EDGETYPE_SPLINE or EDGETYPE_PLINE */
 #ifdef HAVE_GTS
@@ -660,10 +655,6 @@ static int _spline_edges(graph_t * g, expand_t* pmargin, int edgetype)
 
     if (vconfig)
        Pobsclose (vconfig);
-    if (P) {
-       free(P->boxes);
-       free(P);
-    }
     if (obs) {
        for (i=0; i < npoly; i++) {
            free (obs[i]->ps);