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

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