From 84d2bab38202cd52b5eb0a37c12204ab6f607915 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Sep 2015 20:58:41 +0300 Subject: Remove MessageHandler class --- src/net/eathena/elementalhandler.cpp | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'src/net/eathena/elementalhandler.cpp') diff --git a/src/net/eathena/elementalhandler.cpp b/src/net/eathena/elementalhandler.cpp index 44c1437a8..e23758647 100644 --- a/src/net/eathena/elementalhandler.cpp +++ b/src/net/eathena/elementalhandler.cpp @@ -30,34 +30,9 @@ extern Net::ElementalHandler *elementalHandler; namespace EAthena { -ElementalHandler::ElementalHandler() : - MessageHandler() +ElementalHandler::ElementalHandler() { - static const uint16_t _messages[] = - { - SMSG_ELEMENTAL_UPDATE_STATUS, - SMSG_ELEMENTAL_INFO, - 0 - }; - handledMessages = _messages; elementalHandler = this; } -void ElementalHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_ELEMENTAL_UPDATE_STATUS: - ElementalRecv::processElementalUpdateStatus(msg); - break; - - case SMSG_ELEMENTAL_INFO: - ElementalRecv::processElementalInfo(msg); - break; - - default: - break; - } -} - } // namespace EAthena -- cgit v1.2.3-70-g09d2