aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Realms
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-10-10 23:19:40 +0200
committerShauren <shauren.trinity@gmail.com>2014-10-10 23:19:40 +0200
commita04393f5542cc02b1af0e4259d98cc40080972d1 (patch)
tree76555500c4eb14c764db3d868f3f156779237eda /src/server/authserver/Realms
parent03732846fe0d38e7ce969b029e63f09395eb1de2 (diff)
Core/Auth: Moved battle.net handling to separate project
Diffstat (limited to 'src/server/authserver/Realms')
-rw-r--r--src/server/authserver/Realms/RealmList.cpp14
-rw-r--r--src/server/authserver/Realms/RealmList.h6
2 files changed, 0 insertions, 20 deletions
diff --git a/src/server/authserver/Realms/RealmList.cpp b/src/server/authserver/Realms/RealmList.cpp
index 2110dc1fecc..662a015dc65 100644
--- a/src/server/authserver/Realms/RealmList.cpp
+++ b/src/server/authserver/Realms/RealmList.cpp
@@ -19,7 +19,6 @@
#include <boost/asio/ip/tcp.hpp>
#include "Common.h"
#include "RealmList.h"
-#include "BattlenetManager.h"
#include "Database/DatabaseEnv.h"
#include "Util.h"
@@ -193,16 +192,3 @@ void RealmList::UpdateRealms(bool init)
while (result->NextRow());
}
}
-
-Realm const* RealmList::GetRealm(Battlenet::RealmId const& id) const
-{
- auto itr = std::find_if(m_realms.begin(), m_realms.end(), [id](RealmMap::value_type const& pair)
- {
- return pair.second.Region == id.Region && pair.second.Battlegroup == id.Battlegroup && pair.second.m_ID == id.Index;
- });
-
- if (itr != m_realms.end())
- return &itr->second;
-
- return NULL;
-}
diff --git a/src/server/authserver/Realms/RealmList.h b/src/server/authserver/Realms/RealmList.h
index 0063b1a60c8..f7a98cda686 100644
--- a/src/server/authserver/Realms/RealmList.h
+++ b/src/server/authserver/Realms/RealmList.h
@@ -60,11 +60,6 @@ struct Realm
ip::tcp::endpoint GetAddressForClient(ip::address const& clientAddr) const;
};
-namespace Battlenet
-{
- struct RealmId;
-}
-
/// Storage object for the list of realms on the server
class RealmList
{
@@ -88,7 +83,6 @@ public:
RealmMap::const_iterator begin() const { return m_realms.begin(); }
RealmMap::const_iterator end() const { return m_realms.end(); }
uint32 size() const { return m_realms.size(); }
- Realm const* GetRealm(Battlenet::RealmId const& id) const;
private:
RealmList();