diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-23 20:58:14 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-23 20:58:14 +0300 |
commit | 10523dc6979030b6e243d304468a7a24aed77569 (patch) | |
tree | 43d62f4224c687ca7063c48cd5c62ea6017fe8c5 /crawl-ref/source/religion.cc | |
parent | 57d35526d2c2e519b2797260f41cc2576965d626 (diff) | |
download | crawl-ref-10523dc6979030b6e243d304468a7a24aed77569.tar.gz crawl-ref-10523dc6979030b6e243d304468a7a24aed77569.zip |
Remove unused _ammo_count.
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 1f2723add6..f82625126e 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -1165,30 +1165,6 @@ static const item_def* _find_missile_launcher(int skill) return (NULL); } -static int _ammo_count(const item_def *launcher) -{ - int count = 0; - const missile_type mt = launcher? fires_ammo_type(*launcher) : MI_DART; - - for (int i = 0; i < ENDOFPACK; ++i) - { - if (!you.inv[i].is_valid()) - continue; - - const item_def &item = you.inv[i]; - if (item.base_type != OBJ_MISSILES) - continue; - - if (item.sub_type == mt - || mt == MI_STONE && item.sub_type == MI_SLING_BULLET) - { - count += item.quantity; - } - } - - return (count); -} - static bool _need_missile_gift() { const int best_missile_skill = best_skill(SK_SLINGS, SK_THROWING); |