From 0041be617c3f43fb7b74f1634078984a1b70ba1f Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sat, 7 Nov 2009 11:18:13 +0300 Subject: Remove unused player_slot_item. Signed-off-by: Jude Brown --- crawl-ref/source/player.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 5dd852ff30..7734fd26d7 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -732,13 +732,6 @@ bool you_tran_can_wear(int eq, bool check_mutation) return (true); } -// Returns the item in the given equipment slot, NULL if the slot is empty. -// eq must be in [EQ_WEAPON, EQ_AMULET], or bad things will happen. -item_def *player_slot_item(equipment_type eq) -{ - return (you.slot_item(eq)); -} - // Returns the item in the player's weapon slot. item_def *player_weapon() { @@ -5922,6 +5915,8 @@ int player::damage_brand(int) return (ret); } +// Returns the item in the given equipment slot, NULL if the slot is empty. +// eq must be in [EQ_WEAPON, EQ_AMULET], or bad things will happen. item_def *player::slot_item(equipment_type eq) { ASSERT(eq >= EQ_WEAPON && eq <= EQ_AMULET); -- cgit v1.2.3-54-g00ecf