From 6f728490c38e33a675d35b6798fab43ef0ec2455 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 18 Oct 2009 12:53:18 +0200 Subject: Remove obsolete copy of footprint(). --- crawl-ref/source/ray.cc | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'crawl-ref/source/ray.cc') diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc index 6d3db368d6..4d08b9f579 100644 --- a/crawl-ref/source/ray.cc +++ b/crawl-ref/source/ray.cc @@ -285,24 +285,3 @@ adv_type ray_def::raw_advance() flip(); return rc; } - -// Shoot a ray from the given start point (accx, accy) with the given -// slope, bounded by the given pre-squared LOS radius. -// Store the visited cells in pos[], and -// return the number of cells visited. -int ray_def::footprint(int radius2, coord_def cpos[]) const -{ - ray_def copy = *this; - coord_def c; - int cellnum; - for (cellnum = 0; true; ++cellnum) - { - copy.raw_advance(); - c = copy.pos(); - if (c.abs() > radius2) - break; - - cpos[cellnum] = c; - } - return cellnum; -} -- cgit v1.2.3-54-g00ecf