From: Matthew Fernandez Date: Tue, 8 Sep 2020 00:22:21 +0000 (-0700) Subject: remove unused height variable from selfRight X-Git-Tag: 2.46.0~20^2^2~82^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecc55ceb387beacab07b86a41b1d9b81ce757bcc;p=graphviz remove unused height variable from selfRight --- diff --git a/lib/common/splines.c b/lib/common/splines.c index 45b38348f..6e492d7c3 100644 --- a/lib/common/splines.c +++ b/lib/common/splines.c @@ -1072,7 +1072,7 @@ selfLeft (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; @@ -1126,10 +1126,8 @@ selfLeft (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;