summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-07 22:02:11 +0300
committerAdam Borowski <kilobyte@angband.pl>2009-11-07 20:00:56 +0100
commit5775da5b7de46dbfb59a2f9a8e2ecb0a971e28ee (patch)
tree5f63aff7b2b5a0d0b55d0fd32155362b9418a777 /crawl-ref/source/itemprop.cc
parent3c9fa6372b74dbc85e9346775fed33c9c05bca0c (diff)
downloadcrawl-ref-5775da5b7de46dbfb59a2f9a8e2ecb0a971e28ee.tar.gz
crawl-ref-5775da5b7de46dbfb59a2f9a8e2ecb0a971e28ee.zip
Remove unused weapon_impact_mass and weapon_str_required.
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc16
1 files changed, 0 insertions, 16 deletions
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 )
{