]> granicus.if.org Git - graphviz/commitdiff
remove unused height variable from selfRight
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Sep 2020 00:21:52 +0000 (17:21 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 14 Sep 2020 03:51:15 +0000 (20:51 -0700)
lib/common/splines.c

index f58399de85f634d9fdf4f734b1527a012883dc9d..45b38348ff36ebad4e7b8ecaf6c4ec1cca467d2e 100644 (file)
@@ -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;