mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-23 23:27:55 +00:00
[Cleanup] Remove GetQGlobal() from qglobals.cpp/qglobals.h (#3285)
# Notes - This is unused.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user