summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/geom2d.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-01 22:14:14 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-01 22:16:38 +0100
commitfa6b7a2ec83b368ff2be88e4f500d8f7ac89f405 (patch)
treefd3ff5483720c31487864158f594f74212c6ceb3 /crawl-ref/source/geom2d.cc
parent81b06ec875b430b782dbdf204d73ea934efd1e70 (diff)
downloadcrawl-ref-fa6b7a2ec83b368ff2be88e4f500d8f7ac89f405.tar.gz
crawl-ref-fa6b7a2ec83b368ff2be88e4f500d8f7ac89f405.zip
Remove unused function from geom2d.cc.
Diffstat (limited to 'crawl-ref/source/geom2d.cc')
-rw-r--r--crawl-ref/source/geom2d.cc8
1 files changed, 0 insertions, 8 deletions
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.