From c735249c6bc90c0e723c42e7c5b1276579609ec9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Mar 2015 17:59:15 +0300 Subject: Move requestSellList from ea namespace into eathena and tmwa. --- src/net/ea/buysellhandler.cpp | 21 --------------------- src/net/ea/buysellhandler.h | 3 --- 2 files changed, 24 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index 7d33492ce..e5403b270 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -59,27 +59,6 @@ BuySellHandler::BuySellHandler() mBuyDialog = nullptr; } -void BuySellHandler::requestSellList(const std::string &nick) const -{ - if (nick.empty() != 0 || !shopWindow) - return; - - const std::string data("!selllist " + toString(tick_time)); -// +++ need move to tmwa -#ifdef TMWA_SUPPORT - shopWindow->setAcceptPlayer(nick); -#endif - if (config.getBoolValue("hideShopMessages")) - { - chatHandler->privateMessage(nick, data); - } - else - { - if (chatWindow) - chatWindow->addWhisper(nick, data, ChatMsgType::BY_PLAYER); - } -} - void BuySellHandler::requestBuyList(const std::string &nick) const { if (nick.empty() || !shopWindow) diff --git a/src/net/ea/buysellhandler.h b/src/net/ea/buysellhandler.h index 95fcbb204..946064277 100644 --- a/src/net/ea/buysellhandler.h +++ b/src/net/ea/buysellhandler.h @@ -37,9 +37,6 @@ class BuySellHandler notfinal : public Net::BuySellHandler A_DELETE_COPY(BuySellHandler) - virtual void requestSellList(const std::string &nick) - const override final; - virtual void requestBuyList(const std::string &nick) const override final; -- cgit v1.2.3-60-g2f50