From 3c9fa6372b74dbc85e9346775fed33c9c05bca0c Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sat, 7 Nov 2009 21:52:49 +0300 Subject: Remove unused is_colourful_item. --- crawl-ref/source/itemprop.cc | 25 ------------------------- crawl-ref/source/itemprop.h | 2 -- 2 files changed, 27 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index b56c76ef14..441e480b33 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -2707,31 +2707,6 @@ equipment_type get_item_slot(object_class_type type, int sub_type) return (EQ_NONE); } -// Returns true if we might be interested in dumping the colour. -bool is_colourful_item(const item_def &item) -{ - bool ret = false; - - switch (item.base_type) - { - case OBJ_ARMOUR: - if (item.sub_type == ARM_ROBE - || item.sub_type == ARM_CLOAK - || item.sub_type == ARM_CAP - || item.sub_type == ARM_NAGA_BARDING - || item.sub_type == ARM_CENTAUR_BARDING) - { - ret = true; - } - break; - - default: - break; - } - - return (ret); -} - bool is_shield(const item_def &item) { return (item.base_type == OBJ_ARMOUR diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index 413ee459df..cbc51d6fb9 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -739,8 +739,6 @@ size_type item_size(const item_def &item); equipment_type get_item_slot(object_class_type type, int sub_type); equipment_type get_item_slot(const item_def& item); -bool is_colourful_item(const item_def &item); - std::string item_base_name(const item_def &item); const char* weapon_base_name(unsigned char subtype); -- cgit v1.2.3-54-g00ecf