From b770ac4ba82d742713ec4f39e50efa7e8a3005f2 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 23 Jan 2021 08:40:51 +0100 Subject: [PATCH] pathfind: Delete write-only variable in path_find_visualize() A useless variable crept into commit 2fc9dfc52 "New path_find_visualize(), to aid debugging" (v4.3.27). Delete it. Signed-off-by: Markus Armbruster --- src/lib/common/pathfind.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/common/pathfind.c b/src/lib/common/pathfind.c index 33127b793..4b3b75c94 100644 --- a/src/lib/common/pathfind.c +++ b/src/lib/common/pathfind.c @@ -490,12 +490,11 @@ path_find_visualize(coord sx, coord sy, coord dx, coord dy) { int uid; int xmin, xmax, ymin, ymax, x, y, odd, ch; - double c, u, cost; + double c, cost; char buf[1024]; assert(pf_cost(XYOFFSET(sx, sy)) == 0.0); c = pf_cost(XYOFFSET(dx, dy)); - u = c / 10.0; /* find bounding box */ xmin = xmax = 0; -- 2.43.0