From fa6b7a2ec83b368ff2be88e4f500d8f7ac89f405 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 1 Nov 2009 22:14:14 +0100 Subject: Remove unused function from geom2d.cc. --- crawl-ref/source/geom2d.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'crawl-ref/source/geom2d.cc') diff --git a/crawl-ref/source/geom2d.cc b/crawl-ref/source/geom2d.cc index 861e2748f8..294149149e 100644 --- a/crawl-ref/source/geom2d.cc +++ b/crawl-ref/source/geom2d.cc @@ -66,14 +66,6 @@ double nextintersect(const ray &r, const lineseq &ls) return (t); } -// Line distance in the ray parameter. -// ls.f(r.shoot(tdist)) == ls.f(r.start) +- ls.dist -static double tdist(const ray &r, const lineseq &ls) -{ - ASSERT(!parallel(r.dir, ls.f)); - return (std::abs(ls.dist / ls.f(r.dir))); -} - // Move the ray towards the next grid line. // Half way there if "half" is true, else all the way there // Returns whether it hit a corner. -- cgit v1.2.3-54-g00ecf