diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-07 11:18:13 +0300 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-07 18:42:34 +1000 |
commit | 0041be617c3f43fb7b74f1634078984a1b70ba1f (patch) | |
tree | 1c59222ba9e8ab23acdfdf3bb75af0825d07854d /crawl-ref/source/player.cc | |
parent | 5026a1be87655357367b9ae66db018c08899e572 (diff) | |
download | crawl-ref-0041be617c3f43fb7b74f1634078984a1b70ba1f.tar.gz crawl-ref-0041be617c3f43fb7b74f1634078984a1b70ba1f.zip |
Remove unused player_slot_item.
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 9 |
1 files changed, 2 insertions, 7 deletions
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); |