From bc5d15a2a00ad71ab461a17ea219c24002c8660d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 3 Dec 2022 12:53:54 -0800 Subject: [PATCH] neatogen _spline_edges: remove unused 'P' local --- lib/neatogen/neatosplines.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index cfeeb0c77..2030e45f4 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -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); -- 2.40.0