summaryrefslogtreecommitdiff
path: root/src/net/tmwa/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
commit84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch)
tree2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/tmwa/loginhandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadmv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r--src/net/tmwa/loginhandler.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index 177984d72..de9196814 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -43,19 +43,8 @@ namespace TmwAthena
extern ServerInfo charServer;
LoginHandler::LoginHandler() :
- MessageHandler(),
Ea::LoginHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_UPDATE_HOST,
- SMSG_LOGIN_DATA,
- SMSG_LOGIN_ERROR,
- SMSG_CHAR_PASSWORD_RESPONSE,
- SMSG_SERVER_VERSION_RESPONSE,
- 0
- };
- handledMessages = _messages;
loginHandler = this;
}
@@ -63,37 +52,6 @@ LoginHandler::~LoginHandler()
{
}
-void LoginHandler::handleMessage(Net::MessageIn &msg)
-{
- BLOCK_START("LoginHandler::handleMessage")
- switch (msg.getId())
- {
- case SMSG_CHAR_PASSWORD_RESPONSE:
- LoginRecv::processCharPasswordResponse(msg);
- break;
-
- case SMSG_UPDATE_HOST:
- Ea::LoginRecv::processUpdateHost(msg);
- break;
-
- case SMSG_LOGIN_DATA:
- Ea::LoginRecv::processLoginData(msg);
- break;
-
- case SMSG_LOGIN_ERROR:
- Ea::LoginRecv::processLoginError(msg);
- break;
-
- case SMSG_SERVER_VERSION_RESPONSE:
- LoginRecv::processServerVersion(msg);
- break;
-
- default:
- break;
- }
- BLOCK_END("LoginHandler::handleMessage")
-}
-
void LoginHandler::connect()
{
if (!Network::mInstance)