From 290663ccbeffab533a4b5a36ec81fc49c6840a60 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 7 Sep 2020 17:21:02 -0700 Subject: [PATCH] remove unused width variable from selfTop --- lib/common/splines.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/common/splines.c b/lib/common/splines.c index 30df97140..f58399de8 100644 --- a/lib/common/splines.c +++ b/lib/common/splines.c @@ -894,7 +894,7 @@ selfTop (edge_t* edges[], int ind, int cnt, double sizex, double stepy, splineInfo* sinfo) { int i, sgn, point_pair; - double hy, ty, stepx, dx, dy, width, height; + double hy, ty, stepx, dx, dy, height; pointf tp, hp, np; node_t *n; edge_t *e; @@ -975,10 +975,8 @@ selfTop (edge_t* edges[], int ind, int cnt, double sizex, double stepy, points[pointn++] = hp; if (ED_label(e)) { if (GD_flip(agraphof(agtail(e)))) { - width = ED_label(e)->dimen.y; height = ED_label(e)->dimen.x; } else { - width = ED_label(e)->dimen.x; height = ED_label(e)->dimen.y; } ED_label(e)->pos.y = ND_coord(n).y + dy + height / 2.0; -- 2.40.0