From: Markus Armbruster Date: Sat, 23 Jan 2021 07:40:51 +0000 (+0100) Subject: pathfind: Delete write-only variable in path_find_visualize() X-Git-Tag: v4.4.1~15 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=b770ac4ba82d742713ec4f39e50efa7e8a3005f2;ds=sidebyside 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 --- 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;