mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Cleanup] Remove AllConnected(), CanUpdate(), and SendInfo() from login_server_list.cpp and login_server_list.h (#3104)
# Notes - These are unused.
This commit is contained in:
parent
61bd485449
commit
bbdaacd3b0
@ -55,14 +55,6 @@ void LoginServerList::Add(const char* iAddress, uint16 iPort, const char* Accoun
|
|||||||
m_list.push_back(std::unique_ptr<LoginServer>(loginserver));
|
m_list.push_back(std::unique_ptr<LoginServer>(loginserver));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LoginServerList::SendInfo() {
|
|
||||||
for (auto &iter : m_list) {
|
|
||||||
(*iter).SendInfo();
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool LoginServerList::SendStatus() {
|
bool LoginServerList::SendStatus() {
|
||||||
for (auto &iter : m_list) {
|
for (auto &iter : m_list) {
|
||||||
(*iter).SendStatus();
|
(*iter).SendStatus();
|
||||||
@ -99,23 +91,3 @@ bool LoginServerList::Connected() {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LoginServerList::AllConnected() {
|
|
||||||
for (auto &iter : m_list) {
|
|
||||||
if (!(*iter).Connected()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool LoginServerList::CanUpdate() {
|
|
||||||
for (auto &iter : m_list) {
|
|
||||||
if ((*iter).CanUpdate()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|||||||
@ -16,17 +16,11 @@ public:
|
|||||||
~LoginServerList();
|
~LoginServerList();
|
||||||
|
|
||||||
void Add(const char*, uint16, const char*, const char*, bool);
|
void Add(const char*, uint16, const char*, const char*, bool);
|
||||||
|
|
||||||
bool SendInfo();
|
|
||||||
bool SendStatus();
|
bool SendStatus();
|
||||||
|
|
||||||
bool SendPacket(ServerPacket *pack);
|
bool SendPacket(ServerPacket *pack);
|
||||||
bool SendAccountUpdate(ServerPacket *pack);
|
bool SendAccountUpdate(ServerPacket *pack);
|
||||||
bool Connected();
|
bool Connected();
|
||||||
bool AllConnected();
|
|
||||||
bool CanUpdate();
|
|
||||||
size_t GetServerCount() const { return m_list.size(); }
|
size_t GetServerCount() const { return m_list.size(); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::list<std::unique_ptr<LoginServer>> m_list;
|
std::list<std::unique_ptr<LoginServer>> m_list;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user