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

index b232bd79c6adef0ca6cf1125c40ef9452386a7bd..30df97140ddd8ea7c340b00e4b69449238b7d328 100644 (file)
@@ -826,7 +826,7 @@ static void selfBottom (edge_t* edges[], int ind, int cnt,
     node_t *n;
     edge_t *e;
     int i, sgn, point_pair;
-    double hy, ty, stepx, dx, dy, width, height; 
+    double hy, ty, stepx, dx, dy, height;
     pointf points[1000];
     int pointn;
 
@@ -870,10 +870,8 @@ static void selfBottom (edge_t* edges[], int ind, int cnt,
         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;