mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 13:47:57 +00:00
[Cleanup] Remove CountNPC() and QueueManaged() from entity.cpp/entity.h (#3346)
# Notes - These are unused.
This commit is contained in:
@@ -1756,21 +1756,6 @@ void EntityList::QueueClients(
|
||||
}
|
||||
}
|
||||
|
||||
void EntityList::QueueManaged(Mob *sender, const EQApplicationPacket *app,
|
||||
bool ignore_sender, bool ackreq)
|
||||
{
|
||||
auto it = client_list.begin();
|
||||
while (it != client_list.end()) {
|
||||
Client *ent = it->second;
|
||||
|
||||
if ((!ignore_sender || ent != sender))
|
||||
ent->QueuePacket(app, ackreq, Client::CLIENT_CONNECTED);
|
||||
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void EntityList::QueueClientsStatus(Mob *sender, const EQApplicationPacket *app,
|
||||
bool ignore_sender, uint8 minstatus, uint8 maxstatus)
|
||||
{
|
||||
@@ -3205,21 +3190,6 @@ void EntityList::Process()
|
||||
CheckSpawnQueue();
|
||||
}
|
||||
|
||||
void EntityList::CountNPC(uint32 *NPCCount, uint32 *NPCLootCount, uint32 *gmspawntype_count)
|
||||
{
|
||||
*NPCCount = 0;
|
||||
*NPCLootCount = 0;
|
||||
|
||||
auto it = npc_list.begin();
|
||||
while (it != npc_list.end()) {
|
||||
(*NPCCount)++;
|
||||
(*NPCLootCount) += it->second->CountLoot();
|
||||
if (it->second->GetNPCTypeID() == 0)
|
||||
(*gmspawntype_count)++;
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
void EntityList::Depop(bool StartSpawnTimer)
|
||||
{
|
||||
for (auto it = npc_list.begin(); it != npc_list.end(); ++it) {
|
||||
|
||||
Reference in New Issue
Block a user