diff options
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 11 |
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++) |