diff options
-rw-r--r-- | crawl-ref/source/itemprop.cc | 11 | ||||
-rw-r--r-- | crawl-ref/source/itemprop.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 2f08233560..0678649544 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -2310,17 +2310,6 @@ int corpse_freshness(const item_def &item) // // Generic item functions: // -// Returns true if item counts as a tool for tool size comparisons and msgs. -bool is_tool(const item_def &item) -{ - // Currently using OBJ_WEAPONS instead of can_cut_meat() as almost - // any weapon might be an evocable artefact. - return (item.base_type == OBJ_WEAPONS - || item.base_type == OBJ_STAVES - || (item.base_type == OBJ_MISCELLANY - && item.sub_type != MISC_RUNE_OF_ZOT)); -} - int property(const item_def &item, int prop_type) { switch (item.base_type) diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index adccb45830..3cbbcea3f1 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -726,7 +726,6 @@ int corpse_freshness(const item_def &item); bool is_fruit(const item_def & item); // generic item property functions: -bool is_tool(const item_def &item); int property(const item_def &item, int prop_type); bool gives_ability(const item_def &item); bool gives_resistance(const item_def &item); |