mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-10 10:12:24 +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;
|
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) {
|
Client* ClientList::Get(uint32 ip, uint16 port) {
|
||||||
LinkedListIterator<Client*> iterator(list);
|
LinkedListIterator<Client*> iterator(list);
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,6 @@ public:
|
|||||||
void Add(Client* client);
|
void Add(Client* client);
|
||||||
Client* Get(uint32 ip, uint16 port);
|
Client* Get(uint32 ip, uint16 port);
|
||||||
Client* FindByAccountID(uint32 account_id);
|
Client* FindByAccountID(uint32 account_id);
|
||||||
Client* FindByName(char* charname);
|
|
||||||
|
|
||||||
void ZoneBootup(ZoneServer* zs);
|
void ZoneBootup(ZoneServer* zs);
|
||||||
void RemoveCLEReferances(ClientListEntry* cle);
|
void RemoveCLEReferances(ClientListEntry* cle);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user