summaryrefslogtreecommitdiff
path: root/src/net/eathena/bankhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/bankhandler.cpp')
-rw-r--r--src/net/eathena/bankhandler.cpp32
1 files changed, 1 insertions, 31 deletions
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp
index 48bf2f425..94535474c 100644
--- a/src/net/eathena/bankhandler.cpp
+++ b/src/net/eathena/bankhandler.cpp
@@ -31,41 +31,11 @@ extern Net::BankHandler *bankHandler;
namespace EAthena
{
-BankHandler::BankHandler() :
- MessageHandler()
+BankHandler::BankHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_BANK_STATUS,
- SMSG_BANK_DEPOSIT,
- SMSG_BANK_WITHDRAW,
- 0
- };
- handledMessages = _messages;
bankHandler = this;
}
-void BankHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_BANK_STATUS:
- BankRecv::processBankStatus(msg);
- break;
-
- case SMSG_BANK_DEPOSIT:
- BankRecv::processBankDeposit(msg);
- break;
-
- case SMSG_BANK_WITHDRAW:
- BankRecv::processBankWithdraw(msg);
- break;
-
- default:
- break;
- }
-}
-
void BankHandler::deposit(const int money) const
{
createOutPacket(CMSG_BANK_DEPOSIT);