Skip to content

Commit

Permalink
[Cleanup] Remove GetClientCount() from zone/entity.cpp and zone/entit…
Browse files Browse the repository at this point in the history
…y.h (#3392)

* [Cleanup] Remove GetClientCount() from zone/entity.cpp and zone/entity.h

# Notes
- This is unused.

* Update entity.cpp
  • Loading branch information
Kinglykrab authored Jun 13, 2023
1 parent 795df5c commit 152e994
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions zone/entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5007,20 +5007,6 @@ void EntityList::SignalAllClients(int signal_id)
}
}

uint16 EntityList::GetClientCount(){
uint16 ClientCount = 0;
std::list<Client*> client_list;
entity_list.GetClientList(client_list);
auto iter = client_list.begin();
while (iter != client_list.end()) {
Client *entry = (*iter);
entry->GetCleanName();
ClientCount++;
iter++;
}
return ClientCount;
}

void EntityList::GetMobList(std::list<Mob *> &m_list)
{
m_list.clear();
Expand Down
1 change: 0 additions & 1 deletion zone/entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,6 @@ class EntityList

void GateAllClientsToSafeReturn();

uint16 GetClientCount();
void GetMobList(std::list<Mob*> &m_list);
void GetNPCList(std::list<NPC*> &n_list);
void GetMercList(std::list<Merc*> &n_list);
Expand Down

0 comments on commit 152e994

Please sign in to comment.