summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/buysellhandler.cpp18
-rw-r--r--src/net/ea/buysellhandler.h4
2 files changed, 0 insertions, 22 deletions
diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp
index 990ec8716..3ac4951bc 100644
--- a/src/net/ea/buysellhandler.cpp
+++ b/src/net/ea/buysellhandler.cpp
@@ -59,24 +59,6 @@ BuySellHandler::BuySellHandler()
mBuyDialog = nullptr;
}
-void BuySellHandler::sendBuyRequest(const std::string &nick,
- const ShopItem *const item,
- const int amount) const
-{
- if (!chatWindow || nick.empty() || !item ||
- amount < 1 || amount > item->getQuantity())
- {
- return;
- }
- const std::string data = strprintf("!buyitem %d %d %d",
- item->getId(), item->getPrice(), amount);
-
- if (config.getBoolValue("hideShopMessages"))
- chatHandler->privateMessage(nick, data);
- else
- chatWindow->addWhisper(nick, data, ChatMsgType::BY_PLAYER);
-}
-
void BuySellHandler::sendSellRequest(const std::string &nick,
const ShopItem *const item,
const int amount) const
diff --git a/src/net/ea/buysellhandler.h b/src/net/ea/buysellhandler.h
index d3a510ec2..bc5b2f395 100644
--- a/src/net/ea/buysellhandler.h
+++ b/src/net/ea/buysellhandler.h
@@ -37,10 +37,6 @@ class BuySellHandler notfinal : public Net::BuySellHandler
A_DELETE_COPY(BuySellHandler)
- virtual void sendBuyRequest(const std::string &nick,
- const ShopItem *const item,
- const int amount) const override final;
-
virtual void sendSellRequest(const std::string &nick,
const ShopItem *const item,
const int amount) const override final;