summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 14:29:00 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 14:29:00 +0300
commit025b87d903ad3d6ad35496fe50087719ccdd32b6 (patch)
tree9f1f6cc328c268bba151fa6fa05aa72569d676cf
parente2f498423c5c00d81274c2d952a7c767f246dea9 (diff)
downloadcrawl-ref-025b87d903ad3d6ad35496fe50087719ccdd32b6.tar.gz
crawl-ref-025b87d903ad3d6ad35496fe50087719ccdd32b6.zip
Remove unused transform_can_equip_type.
-rw-r--r--crawl-ref/source/itemprop.cc15
-rw-r--r--crawl-ref/source/player.cc5
-rw-r--r--crawl-ref/source/transfor.cc10
3 files changed, 0 insertions, 30 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 2e967d060b..db3517ec3a 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -1298,21 +1298,6 @@ bool check_armour_shape( const item_def &item, bool quiet )
}
}
- // Note: This need to be checked after all the special cases
- // above, and in addition to shapechanged or not. This is
- // a simple check against the armour types that are forced off.
-
- // FIXME FIXME FIXME
- /*
- if (!transform_can_equip_type( slot ))
- {
- if (!quiet)
- mpr( "You can't wear that in your current form!" );
-
- return (false);
- }
- */
-
return (true);
}
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 35ff2be90e..59a20295ac 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -5945,11 +5945,6 @@ bool player::could_wield(const item_def &item, bool ignore_brand,
return (false);
}
-#if 0
- if (!ignore_transform && !transform_can_equip_type(EQ_WEAPON))
- return (false);
-#endif
-
return (true);
}
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc
index 603a2547ba..db9260d430 100644
--- a/crawl-ref/source/transfor.cc
+++ b/crawl-ref/source/transfor.cc
@@ -1020,16 +1020,6 @@ bool can_equip( equipment_type use_which, bool ignore_temporary )
return (true);
}
-// raw comparison of an item, must use check_armour_shape for full version
-bool transform_can_equip_type( int eq_slot )
-{
- // FIXME FIXME FIXME
- return (false);
-
- // const int form = you.attribute[ATTR_TRANSFORMATION];
- // return (!must_remove( Trans[form].rem_stuff, eq_slot ));
-}
-
void _extra_hp(int amount_extra) // must also set in calc_hp
{
calc_hp();