From 10523dc6979030b6e243d304468a7a24aed77569 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Mon, 23 Nov 2009 20:58:14 +0300 Subject: Remove unused _ammo_count. --- crawl-ref/source/religion.cc | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'crawl-ref/source/religion.cc') 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); -- cgit v1.2.3-54-g00ecf