From 5775da5b7de46dbfb59a2f9a8e2ecb0a971e28ee Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sat, 7 Nov 2009 22:02:11 +0300 Subject: Remove unused weapon_impact_mass and weapon_str_required. --- crawl-ref/source/itemprop.cc | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'crawl-ref/source/itemprop.cc') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 441e480b33..2f08233560 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -1879,22 +1879,6 @@ int weapon_dex_weight( const item_def &wpn ) return (10 - weapon_str_weight( wpn )); } -int weapon_impact_mass( const item_def &wpn ) -{ - ASSERT (wpn.base_type == OBJ_WEAPONS || wpn.base_type == OBJ_STAVES); - - return ((weapon_str_weight( wpn ) * item_mass( wpn ) + 5) / 10); -} - -int weapon_str_required( const item_def &wpn, bool hand_half ) -{ - ASSERT (wpn.base_type == OBJ_WEAPONS || wpn.base_type == OBJ_STAVES); - - const int req = weapon_impact_mass( wpn ) / ((hand_half) ? 11 : 10); - - return ((req < STR_REQ_THRESHOLD) ? 0 : req); -} - // Returns melee skill of item. skill_type weapon_skill( const item_def &item ) { -- cgit v1.2.3-54-g00ecf