summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/ray.cc21
-rw-r--r--crawl-ref/source/ray.h2
2 files changed, 0 insertions, 23 deletions
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;
-}
diff --git a/crawl-ref/source/ray.h b/crawl-ref/source/ray.h
index 0505f8923c..aa4570426e 100644
--- a/crawl-ref/source/ray.h
+++ b/crawl-ref/source/ray.h
@@ -40,8 +40,6 @@ public:
void advance_and_bounce();
void regress();
- int footprint(int radius2, coord_def pos[]) const;
-
// Gets/sets the slope in terms of degrees, with 0 = east, 90 = north,
// 180 = west, 270 = south, 360 = east, -90 = south, etc
double get_degrees() const;