Remove GetID

This commit is contained in:
Kinglykrab 2025-08-15 14:42:53 -04:00
parent 79b790e739
commit 137e79bc7c
2 changed files with 0 additions and 14 deletions

View File

@ -452,19 +452,6 @@ bool LDoNTheme::IsValid(uint32 theme_id)
return ldon_theme_names.find(theme_id) != ldon_theme_names.end();
}
uint8 PetCommand::GetID(std::string pet_command)
{
auto e = std::find_if(
pet_commands.begin(),
pet_commands.end(),
[&pet_command](const auto &c) {
return c.second == pet_command;
}
);
return e != pet_commands.end() ? e->first : -1;
}
std::string PetCommand::GetName(uint8 pet_command)
{
return IsValid(pet_command) ? pet_commands[pet_command] : "UNKNOWN PET COMMAND";

View File

@ -880,7 +880,6 @@ namespace PetCommand {
{ PetCommand::Max, "Max" }
};
uint8 GetID(std::string pet_command);
std::string GetName(uint8 pet_command);
bool IsValid(uint8 pet_command);
}