From a865b10749df829ef46a14e244bc88ac52bc10b4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Jun 2011 22:08:04 +0300 Subject: Add colors support for drops panel. Delete search item function without colors support. --- src/inventory.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index 6eb7dbf16..5e600192b 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -74,17 +74,6 @@ Item *Inventory::getItem(int index) const return mItems[index]; } -Item *Inventory::findItem(int itemId) const -{ - for (unsigned i = 0; i < mSize; i++) - { - if (mItems[i] && mItems[i]->getId() == itemId) - return mItems[i]; - } - - return 0; -} - Item *Inventory::findItem(int itemId, unsigned char color) const { for (unsigned i = 0; i < mSize; i++) -- cgit v1.2.3-60-g2f50