From f52c2f9713b594127ef8fdf5acb787c0fc43d89f Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sun, 8 Nov 2009 11:10:50 +0300 Subject: Remove unused is_tool. --- crawl-ref/source/itemprop.cc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'crawl-ref/source/itemprop.cc') 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) -- cgit v1.2.3-54-g00ecf