[Cleanup] Remove NumberOfAvailableTitles() from titles.h (#3006)

# Notes
- This is unused.
This commit is contained in:
Alex King 2023-02-26 21:35:43 -05:00 committed by GitHub
parent 3448758c03
commit 1ff4541a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 13 deletions

View File

@ -93,18 +93,6 @@ EQApplicationPacket *TitleManager::MakeTitlesPacket(Client *client)
return(outapp);
}
int TitleManager::NumberOfAvailableTitles(Client *client)
{
int count = 0;
for (const auto& title : titles) {
if (IsClientEligibleForTitle(client, title)) {
++count;
}
}
return count;
}
std::string TitleManager::GetPrefix(int title_id)
{
if (!title_id) {

View File

@ -51,7 +51,6 @@ public:
EQApplicationPacket *MakeTitlesPacket(Client *client);
std::string GetPrefix(int title_id);
std::string GetSuffix(int title_id);
int NumberOfAvailableTitles(Client *client);
bool IsClientEligibleForTitle(Client *client, TitleEntry title);
bool IsNewAATitleAvailable(int aa_points, int class_id);
bool IsNewTradeSkillTitleAvailable(int skill_id, int skill_value);