diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-08 11:10:50 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-08 11:33:57 +0300 |
commit | f52c2f9713b594127ef8fdf5acb787c0fc43d89f (patch) | |
tree | 907e4d9f206c543c7983e3b0300743f4f7e877a6 /crawl-ref/source | |
parent | d0b1ebb446d3eebb41824161d7160b24d3e7cceb (diff) | |
download | crawl-ref-f52c2f9713b594127ef8fdf5acb787c0fc43d89f.tar.gz crawl-ref-f52c2f9713b594127ef8fdf5acb787c0fc43d89f.zip |
Remove unused is_tool.
Diffstat (limited to 'crawl-ref/source')
-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); |