[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:
Alex King 2023-03-17 06:22:34 -04:00 committed by GitHub
parent 61bd485449
commit bbdaacd3b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 34 deletions

View File

@ -55,14 +55,6 @@ void LoginServerList::Add(const char* iAddress, uint16 iPort, const char* Accoun
m_list.push_back(std::unique_ptr<LoginServer>(loginserver));
}
bool LoginServerList::SendInfo() {
for (auto &iter : m_list) {
(*iter).SendInfo();
}
return true;
}
bool LoginServerList::SendStatus() {
for (auto &iter : m_list) {
(*iter).SendStatus();
@ -99,23 +91,3 @@ bool LoginServerList::Connected() {
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;
}

View File

@ -16,17 +16,11 @@ public:
~LoginServerList();
void Add(const char*, uint16, const char*, const char*, bool);
bool SendInfo();
bool SendStatus();
bool SendPacket(ServerPacket *pack);
bool SendAccountUpdate(ServerPacket *pack);
bool Connected();
bool AllConnected();
bool CanUpdate();
size_t GetServerCount() const { return m_list.size(); }
protected:
std::list<std::unique_ptr<LoginServer>> m_list;
};