summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-07-28 23:06:05 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-07-28 23:06:21 -0400
commite05c1ae0a57423ca35b01124b3a9f242dcccc2f6 (patch)
treea087708834d27083b0e8ee324846c92d8a867d8d /crawl-ref/source/misc.cc
parentf21491568017d59a7cba0dc755fa8a079534a222 (diff)
downloadcrawl-ref-e05c1ae0a57423ca35b01124b3a9f242dcccc2f6.tar.gz
crawl-ref-e05c1ae0a57423ca35b01124b3a9f242dcccc2f6.zip
Remove an unused function (misc.cc)
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 40e2613fe7..50cfc51a0c 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -861,23 +861,6 @@ void run_environment_effects()
run_cloud_spreaders(you.time_taken);
}
-coord_def pick_adjacent_free_square(const coord_def& p)
-{
- int num_ok = 0;
- coord_def result(-1, -1);
-
- for (adjacent_iterator ai(p); ai; ++ai)
- {
- if (grd(*ai) == DNGN_FLOOR && monster_at(*ai) == NULL
- && one_chance_in(++num_ok))
- {
- result = *ai;
- }
- }
-
- return result;
-}
-
// Converts a movement speed to a duration. i.e., answers the
// question: if the monster is so fast, how much time has it spent in
// its last movement?