diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-07 21:29:48 +0300 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-07 19:24:19 +0100 |
commit | 5e294c8cc236c58e72dff69c51b24d6b59533359 (patch) | |
tree | da67f8150a94fd0a4b2299749f9e19c55185e719 | |
parent | 5d2a499bab2f4c907e08803542329c65edb8231c (diff) | |
download | crawl-ref-5e294c8cc236c58e72dff69c51b24d6b59533359.tar.gz crawl-ref-5e294c8cc236c58e72dff69c51b24d6b59533359.zip |
Remove unused get_inv_wielded and get_inv_in_hand.
-rw-r--r-- | crawl-ref/source/itemprop.cc | 14 | ||||
-rw-r--r-- | crawl-ref/source/itemprop.h | 3 |
2 files changed, 0 insertions, 17 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 93cd26c35a..b56c76ef14 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -2053,20 +2053,6 @@ bool check_weapon_wieldable_size( const item_def &item, size_type size ) return (fit == 0); } -// Returns the you.inv[] index of our wielded weapon or -1 (no item, not wield). -int get_inv_wielded( void ) -{ - return (player_weapon_wielded() ? you.equip[EQ_WEAPON] : -1); -} - -// Returns the you.inv[] index of the thing in our hand... this is provided -// as a service to specify that both of the above are irrelevant. -// Do not use this for low level functions dealing with wielding directly. -int get_inv_in_hand( void ) -{ - return (you.equip[EQ_WEAPON]); -} - // // Launcher and ammo functions: // diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index 11f8b1c724..413ee459df 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -672,9 +672,6 @@ int fit_item_throwable_size( const item_def &item, size_type size ); int weapon_ev_bonus( const item_def &wpn, int skill, size_type body, int dex, bool hide_hidden = false ); -int get_inv_wielded( void ); -int get_inv_in_hand( void ); - hands_reqd_type hands_reqd( const item_def &item, size_type size ); hands_reqd_type hands_reqd(object_class_type base_type, int sub_type, size_type size); |