From: Matthew Fernandez Date: Tue, 8 Sep 2020 00:21:02 +0000 (-0700) Subject: remove unused width variable from selfTop X-Git-Tag: 2.46.0~20^2^2~82^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=290663ccbeffab533a4b5a36ec81fc49c6840a60;p=graphviz remove unused width variable from selfTop --- 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;