From 137e79bc7ccdee6a5d6368548775150e7a2f6f21 Mon Sep 17 00:00:00 2001 From: Kinglykrab Date: Fri, 15 Aug 2025 14:42:53 -0400 Subject: [PATCH] Remove GetID --- common/emu_constants.cpp | 13 ------------- common/emu_constants.h | 1 - 2 files changed, 14 deletions(-) diff --git a/common/emu_constants.cpp b/common/emu_constants.cpp index a0d80cffe..ecb1e4c58 100644 --- a/common/emu_constants.cpp +++ b/common/emu_constants.cpp @@ -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"; diff --git a/common/emu_constants.h b/common/emu_constants.h index d685c201e..9e8450105 100644 --- a/common/emu_constants.h +++ b/common/emu_constants.h @@ -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); }