From 901b607d96bb59c012e679918d9ca083d2ad3c2f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Dec 2014 16:13:08 +0300 Subject: Move processTradeResponse from ea namespace into tmwa. --- src/net/ea/tradehandler.cpp | 13 ------------- src/net/ea/tradehandler.h | 2 -- 2 files changed, 15 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp index 2a478d953..d99f5da59 100644 --- a/src/net/ea/tradehandler.cpp +++ b/src/net/ea/tradehandler.cpp @@ -64,19 +64,6 @@ void TradeHandler::removeItem(const int slotNum A_UNUSED, { } -void TradeHandler::processTradeResponse(Net::MessageIn &msg) -{ - if (confirmDlg || tradePartnerName.empty() - || !player_relations.hasPermission(tradePartnerName, - PlayerRelation::TRADE)) - { - tradeHandler->respond(false); - return; - } - const uint8_t type = msg.readUInt8("type"); - processTradeResponseContinue(type); -} - void TradeHandler::processTradeResponseContinue(const uint8_t type) { switch (type) diff --git a/src/net/ea/tradehandler.h b/src/net/ea/tradehandler.h index 186a9f981..d9cff1cdb 100644 --- a/src/net/ea/tradehandler.h +++ b/src/net/ea/tradehandler.h @@ -44,8 +44,6 @@ class TradeHandler notfinal : public Net::TradeHandler const int amount) const override final; protected: - static void processTradeResponse(Net::MessageIn &msg); - static void processTradeOk(Net::MessageIn &msg); static void processTradeCancel(Net::MessageIn &msg); -- cgit v1.2.3-70-g09d2