From 2ff6ba08013b00b8685e4c8f1f53d7f0ead172a7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 00:18:59 +0300 Subject: Remove getter for auctionHandler. --- src/net/auctionhandler.h | 2 ++ src/net/net.cpp | 6 +----- src/net/net.h | 2 -- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/net/auctionhandler.h b/src/net/auctionhandler.h index 24dc9a364..1432381d2 100644 --- a/src/net/auctionhandler.h +++ b/src/net/auctionhandler.h @@ -37,4 +37,6 @@ class AuctionHandler notfinal } // namespace Net +extern Net::AuctionHandler *auctionHandler; + #endif // NET_AUCTIONHANDLER_H diff --git a/src/net/net.cpp b/src/net/net.cpp index 520c794db..bfb56870d 100644 --- a/src/net/net.cpp +++ b/src/net/net.cpp @@ -39,6 +39,7 @@ namespace Net { class AdminHandler; + class AuctionHandler; } Net::AdminHandler *adminHandler = nullptr; @@ -149,11 +150,6 @@ Net::MailHandler *Net::getMailHandler() return mailHandler; } -Net::AuctionHandler *Net::getAuctionHandler() -{ - return auctionHandler; -} - Net::CashShopHandler *Net::getCashShopHandler() { return cashShopHandler; diff --git a/src/net/net.h b/src/net/net.h index 4581e9946..cbadf71cd 100644 --- a/src/net/net.h +++ b/src/net/net.h @@ -36,7 +36,6 @@ namespace Net { -class AuctionHandler; class BankHandler; class BeingHandler; class CashShopHandler; @@ -75,7 +74,6 @@ TradeHandler *getTradeHandler() A_WARN_UNUSED; BuySellHandler *getBuySellHandler() A_WARN_UNUSED; ServerFeatures *getServerFeatures() A_WARN_UNUSED; MailHandler *getMailHandler() A_WARN_UNUSED; -AuctionHandler *getAuctionHandler() A_WARN_UNUSED; CashShopHandler *getCashShopHandler() A_WARN_UNUSED; FamilyHandler *getFamilyHandler() A_WARN_UNUSED; BankHandler *getBankHandler() A_WARN_UNUSED; -- cgit v1.2.3-70-g09d2