]> granicus.if.org Git - graphviz/commitdiff
remove unused width variable from selfTop
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Sep 2020 00:21:02 +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 30df97140ddd8ea7c340b00e4b69449238b7d328..f58399de85f634d9fdf4f734b1527a012883dc9d 100644 (file)
@@ -894,7 +894,7 @@ selfTop (edge_t* edges[], int ind, int cnt, double sizex, double stepy,
            splineInfo* sinfo) 
 {
     int i, sgn, point_pair;
-    double hy, ty,  stepx, dx, dy, width, height; 
+    double hy, ty,  stepx, dx, dy, height;
     pointf tp, hp, np;
     node_t *n;
     edge_t *e;
@@ -975,10 +975,8 @@ selfTop (edge_t* edges[], int ind, int cnt, double sizex, double stepy,
         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;