mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 01:01:30 +00:00
[Cleanup] Remove GroupCount() and RaidGroupCount() (#3943)
# Notes - These are unused.
This commit is contained in:
parent
47968774d9
commit
1bb8678abe
@ -2636,40 +2636,6 @@ void ZoneDatabase::RefreshGroupFromDB(Client *client){
|
||||
group->SendMarkedNPCsToMember(client);
|
||||
}
|
||||
|
||||
uint8 ZoneDatabase::GroupCount(uint32 groupid) {
|
||||
|
||||
std::string query = StringFormat("SELECT count(charid) FROM group_id WHERE groupid = %d", groupid);
|
||||
auto results = QueryDatabase(query);
|
||||
if (!results.Success()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (results.RowCount() == 0)
|
||||
return 0;
|
||||
|
||||
auto& row = results.begin();
|
||||
|
||||
return Strings::ToInt(row[0]);
|
||||
}
|
||||
|
||||
uint8 ZoneDatabase::RaidGroupCount(uint32 raidid, uint32 groupid) {
|
||||
|
||||
std::string query = StringFormat("SELECT count(charid) FROM raid_members "
|
||||
"WHERE raidid = %d AND groupid = %d;", raidid, groupid);
|
||||
auto results = QueryDatabase(query);
|
||||
|
||||
if (!results.Success()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (results.RowCount() == 0)
|
||||
return 0;
|
||||
|
||||
auto& row = results.begin();
|
||||
|
||||
return Strings::ToInt(row[0]);
|
||||
}
|
||||
|
||||
int64 ZoneDatabase::GetBlockedSpellsCount(uint32 zone_id)
|
||||
{
|
||||
return BlockedSpellsRepository::Count(
|
||||
|
||||
@ -629,10 +629,6 @@ public:
|
||||
|
||||
/* Group */
|
||||
void RefreshGroupFromDB(Client *c);
|
||||
uint8 GroupCount(uint32 groupid);
|
||||
|
||||
/* Raid */
|
||||
uint8 RaidGroupCount(uint32 raidid, uint32 groupid);
|
||||
|
||||
/* Instancing */
|
||||
void ListAllInstances(Client* c, uint32 character_id);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user