summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-04 22:08:04 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-04 22:08:04 +0300
commita865b10749df829ef46a14e244bc88ac52bc10b4 (patch)
tree244f283ab8ba6cfcc9683eafe51be7a9d7bbabbe /src/inventory.cpp
parent9b3e13d4246930f0aa4dfb86e735466032d283dd (diff)
downloadplus-a865b10749df829ef46a14e244bc88ac52bc10b4.tar.gz
plus-a865b10749df829ef46a14e244bc88ac52bc10b4.tar.bz2
plus-a865b10749df829ef46a14e244bc88ac52bc10b4.tar.xz
plus-a865b10749df829ef46a14e244bc88ac52bc10b4.zip
Add colors support for drops panel.
Delete search item function without colors support.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp11
1 files changed, 0 insertions, 11 deletions
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++)