mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 12:41:30 +00:00
[Cleanup] Remove GetQGlobal() from qglobals.cpp/qglobals.h (#3285)
# Notes - This is unused.
This commit is contained in:
parent
285cc3af29
commit
933d856b5b
@ -102,22 +102,6 @@ void QGlobalCache::GetQGlobals(std::list<QGlobal> &globals, NPC *n, Client *c, Z
|
||||
}
|
||||
}
|
||||
|
||||
bool QGlobalCache::GetQGlobal(QGlobal &g, std::string name, NPC *n, Client *c, Zone *z) {
|
||||
std::list<QGlobal> globals;
|
||||
QGlobalCache::GetQGlobals(globals, n, c, z);
|
||||
|
||||
auto iter = globals.begin();
|
||||
while(iter != globals.end()) {
|
||||
if(iter->name.compare(name) == 0) {
|
||||
g = (*iter);
|
||||
return true;
|
||||
}
|
||||
++iter;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void QGlobalCache::PurgeExpiredGlobals()
|
||||
{
|
||||
if(!qGlobalBucket.size())
|
||||
|
||||
@ -31,7 +31,6 @@ public:
|
||||
//assumes cacheA is already a valid or empty list and doesn't check for valid items.
|
||||
static void Combine(std::list<QGlobal> &cacheA, std::list<QGlobal> cacheB, uint32 npcID, uint32 charID, uint32 zoneID);
|
||||
static void GetQGlobals(std::list<QGlobal> &globals, NPC *n, Client *c, Zone *z);
|
||||
static bool GetQGlobal(QGlobal &g, std::string name, NPC *n, Client *c, Zone *z);
|
||||
|
||||
void PurgeExpiredGlobals();
|
||||
void LoadByNPCID(uint32 npcID); //npc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user