From: Matthew Fernandez Date: Tue, 8 Sep 2020 00:21:52 +0000 (-0700) Subject: remove unused height variable from selfRight X-Git-Tag: 2.46.0~20^2^2~82^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e17989c155b16d2a683e271de915354ae47ebb8d;p=graphviz remove unused height variable from selfRight --- diff --git a/lib/common/splines.c b/lib/common/splines.c index f58399de8..45b38348f 100644 --- a/lib/common/splines.c +++ b/lib/common/splines.c @@ -999,7 +999,7 @@ selfRight (edge_t* edges[], int ind, int cnt, double stepx, double sizey, splineInfo* sinfo) { int i, sgn, point_pair; - double hx, tx, stepy, dx, dy, width, height; + double hx, tx, stepy, dx, dy, width; pointf tp, hp, np; node_t *n; edge_t *e; @@ -1049,10 +1049,8 @@ selfRight (edge_t* edges[], int ind, int cnt, double stepx, double sizey, 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.x = ND_coord(n).x + dx + width / 2.0; ED_label(e)->pos.y = ND_coord(n).y;