From 5e294c8cc236c58e72dff69c51b24d6b59533359 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sat, 7 Nov 2009 21:29:48 +0300 Subject: Remove unused get_inv_wielded and get_inv_in_hand. --- crawl-ref/source/itemprop.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'crawl-ref/source/itemprop.cc') 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: // -- cgit v1.2.3-54-g00ecf