From e2f498423c5c00d81274c2d952a7c767f246dea9 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sun, 8 Nov 2009 13:49:33 +0300 Subject: Remove unused check_jewellery_size. --- crawl-ref/source/itemprop.cc | 11 ----------- crawl-ref/source/itemprop.h | 1 - 2 files changed, 12 deletions(-) diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 0678649544..2e967d060b 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -1129,17 +1129,6 @@ bool jewellery_is_amulet( int sub_type ) return (sub_type >= AMU_RAGE); } -bool check_jewellery_size( const item_def &item, size_type size ) -{ - ASSERT( item.base_type == OBJ_JEWELLERY ); - - // Currently assuming amulets are always wearable (only needs - // to be held over head or heart... giants can strap it on with - // a bit of binder twine). However, rings need to actually fit - // around the ring finger to work, and so the big cannot use them. - return (size <= SIZE_LARGE || jewellery_is_amulet( item )); -} - // Returns the basic light status of an armour, ignoring things like the // elven bonus... you probably want is_light_armour() most times. bool base_armour_is_light( const item_def &item ) diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index 3cbbcea3f1..90fdf97a9f 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -635,7 +635,6 @@ equipment_type get_armour_slot( armour_type arm ); bool jewellery_is_amulet( const item_def &item ); bool jewellery_is_amulet( int sub_type ); -bool check_jewellery_size( const item_def &item, size_type size ); bool hide2armour( item_def &item ); -- cgit v1.2.3-54-g00ecf