summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-07-14 01:54:42 +0200
committerarchshift <admin@archshift.com>2014-07-14 22:46:43 +0200
commit40bb98510a820469184e4947db3de22088b55fc7 (patch)
treeaa6915d7aca21bc568e2f4367ce4cddc5be81432
parentReadability and clarity changes (diff)
downloadcuberite-40bb98510a820469184e4947db3de22088b55fc7.tar
cuberite-40bb98510a820469184e4947db3de22088b55fc7.tar.gz
cuberite-40bb98510a820469184e4947db3de22088b55fc7.tar.bz2
cuberite-40bb98510a820469184e4947db3de22088b55fc7.tar.lz
cuberite-40bb98510a820469184e4947db3de22088b55fc7.tar.xz
cuberite-40bb98510a820469184e4947db3de22088b55fc7.tar.zst
cuberite-40bb98510a820469184e4947db3de22088b55fc7.zip
-rw-r--r--src/Items/ItemHandler.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/Items/ItemHandler.cpp b/src/Items/ItemHandler.cpp
index 7fae2d395..85406c826 100644
--- a/src/Items/ItemHandler.cpp
+++ b/src/Items/ItemHandler.cpp
@@ -474,32 +474,6 @@ bool cItemHandler::IsTool()
bool cItemHandler::IsFood(void)
{
- switch (m_ItemType)
- {
- case E_ITEM_RED_APPLE:
- case E_ITEM_GOLDEN_APPLE:
- case E_ITEM_MUSHROOM_SOUP:
- case E_ITEM_BREAD:
- case E_ITEM_RAW_PORKCHOP:
- case E_ITEM_COOKED_PORKCHOP:
- case E_ITEM_RAW_FISH:
- case E_ITEM_COOKED_FISH:
- case E_ITEM_COOKIE:
- case E_ITEM_MELON_SLICE:
- case E_ITEM_RAW_BEEF:
- case E_ITEM_STEAK:
- case E_ITEM_RAW_CHICKEN:
- case E_ITEM_COOKED_CHICKEN:
- case E_ITEM_ROTTEN_FLESH:
- case E_ITEM_SPIDER_EYE:
- case E_ITEM_CARROT:
- case E_ITEM_POTATO:
- case E_ITEM_BAKED_POTATO:
- case E_ITEM_POISONOUS_POTATO:
- {
- return true;
- }
- } // switch (m_ItemType)
return false;
}
@@ -511,13 +485,6 @@ bool cItemHandler::IsDrinkable(short a_ItemDamage)
{
UNUSED(a_ItemDamage);
- switch (m_ItemType)
- {
- case E_ITEM_MILK:
- {
- return true;
- }
- } // switch (m_ItemType)
return false;
}