diff options
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 18 | ||||
-rw-r--r-- | src/net/ea/inventoryhandler.h | 2 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index c3ddc6c0c..dffcd18bc 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -270,24 +270,6 @@ void InventoryHandler::processPlayerStorageStatus(Net::MessageIn &msg) BLOCK_END("InventoryHandler::processPlayerStorageStatus") } -void InventoryHandler::processPlayerStorageRemove(Net::MessageIn &msg) -{ - BLOCK_START("InventoryHandler::processPlayerStorageRemove") - // Move an item out of storage - const int index = msg.readInt16("index") - STORAGE_OFFSET; - const int amount = msg.readInt16("amount"); - if (mStorage) - { - if (Item *const item = mStorage->getItem(index)) - { - item->increaseQuantity(-amount); - if (item->getQuantity() == 0) - mStorage->removeItemAt(index); - } - } - BLOCK_END("InventoryHandler::processPlayerStorageRemove") -} - void InventoryHandler::processPlayerStorageClose(Net::MessageIn &msg A_UNUSED) { BLOCK_START("InventoryHandler::processPlayerStorageClose") diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h index 3e393a98c..7458d0c6e 100644 --- a/src/net/ea/inventoryhandler.h +++ b/src/net/ea/inventoryhandler.h @@ -86,8 +86,6 @@ class InventoryHandler notfinal : public Net::InventoryHandler static void processPlayerStorageStatus(Net::MessageIn &msg); - static void processPlayerStorageRemove(Net::MessageIn &msg); - static void processPlayerStorageClose(Net::MessageIn &msg); static void processPlayerAttackRange(Net::MessageIn &msg); |