From b86cb0912b98581dd5534b6b2a71777696ca8b02 Mon Sep 17 00:00:00 2001 From: John Turner <7strbass@gmail.com> Date: Tue, 21 Feb 2023 10:24:15 -0500 Subject: [PATCH] --remove dupe defs --- .../attributes/AttributesEnumMaps.cpp | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/esp/metadata/attributes/AttributesEnumMaps.cpp b/src/esp/metadata/attributes/AttributesEnumMaps.cpp index 3b6fd240d2..5bcb675379 100644 --- a/src/esp/metadata/attributes/AttributesEnumMaps.cpp +++ b/src/esp/metadata/attributes/AttributesEnumMaps.cpp @@ -64,12 +64,6 @@ std::string getLightTypeName(esp::gfx::LightType lightTypeEnum) { } return "point"; } - -const std::map - LightPositionNamesMap = {{"global", esp::gfx::LightPositionModel::Global}, - {"camera", esp::gfx::LightPositionModel::Camera}, - {"object", esp::gfx::LightPositionModel::Object}}; - std::string getLightPositionModelName( esp::gfx::LightPositionModel lightPositionEnum) { // this verifies that enum value being checked is supported by string-keyed @@ -87,15 +81,6 @@ std::string getLightPositionModelName( } return "global"; } - -const std::map ShaderTypeNamesMap = { - {"unspecified", ObjectInstanceShaderType::Unspecified}, - {"material", ObjectInstanceShaderType::Material}, - {"flat", ObjectInstanceShaderType::Flat}, - {"phong", ObjectInstanceShaderType::Phong}, - {"pbr", ObjectInstanceShaderType::PBR}, -}; - std::string getShaderTypeName(ObjectInstanceShaderType shaderTypeVal) { // this verifies that enum value being checked is supported by string-keyed // map. The values below should be the minimum and maximum enums supported by @@ -150,13 +135,6 @@ std::string getTranslationOriginName( return "default"; } -// All keys must be lowercase -const std::map MotionTypeNamesMap = { - {"static", esp::physics::MotionType::STATIC}, - {"kinematic", esp::physics::MotionType::KINEMATIC}, - {"dynamic", esp::physics::MotionType::DYNAMIC}, -}; - std::string getMotionTypeName(esp::physics::MotionType motionTypeEnum) { // this verifies that enum value being checked is supported by string-keyed // map. The values below should be the minimum and maximum enums supported by