summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 11:10:50 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 11:33:57 +0300
commitf52c2f9713b594127ef8fdf5acb787c0fc43d89f (patch)
tree907e4d9f206c543c7983e3b0300743f4f7e877a6 /crawl-ref/source/itemprop.cc
parentd0b1ebb446d3eebb41824161d7160b24d3e7cceb (diff)
downloadcrawl-ref-f52c2f9713b594127ef8fdf5acb787c0fc43d89f.tar.gz
crawl-ref-f52c2f9713b594127ef8fdf5acb787c0fc43d89f.zip
Remove unused is_tool.
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc11
1 files changed, 0 insertions, 11 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)