mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 01:01:30 +00:00
[Cleanup] Remove FindByName(charname) from clientlist.h (#3096)
# Notes - This is unused.
This commit is contained in:
parent
3a530eb43b
commit
7bbcdfb479
@ -1224,20 +1224,6 @@ Client* ClientList::FindByAccountID(uint32 account_id) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Client* ClientList::FindByName(char* charname) {
|
||||
LinkedListIterator<Client*> iterator(list);
|
||||
|
||||
iterator.Reset();
|
||||
while(iterator.MoreElements()) {
|
||||
if (iterator.GetData()->GetCharName() == charname) {
|
||||
Client* tmp = iterator.GetData();
|
||||
return tmp;
|
||||
}
|
||||
iterator.Advance();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Client* ClientList::Get(uint32 ip, uint16 port) {
|
||||
LinkedListIterator<Client*> iterator(list);
|
||||
|
||||
|
||||
@ -30,7 +30,6 @@ public:
|
||||
void Add(Client* client);
|
||||
Client* Get(uint32 ip, uint16 port);
|
||||
Client* FindByAccountID(uint32 account_id);
|
||||
Client* FindByName(char* charname);
|
||||
|
||||
void ZoneBootup(ZoneServer* zs);
|
||||
void RemoveCLEReferances(ClientListEntry* cle);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user