From 9a19a4723b118f05198a52ad3ecd81f84e8f9386 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 27 Sep 2020 20:54:21 +0200 Subject: [PATCH] amf: fix warning: unused variable. --- code/AssetLib/AMF/AMFImporter.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/code/AssetLib/AMF/AMFImporter.cpp b/code/AssetLib/AMF/AMFImporter.cpp index b5a1bc14d..26a08e322 100644 --- a/code/AssetLib/AMF/AMFImporter.cpp +++ b/code/AssetLib/AMF/AMFImporter.cpp @@ -408,25 +408,18 @@ void AMFImporter::ParseNode_Instance(XmlNode &node) { if (!node.empty()) { ParseHelper_Node_Enter(ne); for (XmlNode currentNode = node.first_child(); currentNode; currentNode = currentNode.next_sibling()) { - bool read_flag[6] = { false, false, false, false, false, false }; const std::string ¤tName = currentNode.name(); if (currentName == "deltax") { - read_flag[0] = true; als.Delta.x = (ai_real)std::atof(currentNode.value()); } else if (currentName == "deltay") { - read_flag[1] = true; als.Delta.y = (ai_real)std::atof(currentNode.value()); } else if (currentName == "deltaz") { - read_flag[2] = true; als.Delta.z = (ai_real)std::atof(currentNode.value()); } else if (currentName == "rx") { - read_flag[3] = true; als.Delta.x = (ai_real)std::atof(currentNode.value()); } else if (currentName == "ry") { - read_flag[4] = true; als.Delta.y = (ai_real)std::atof(currentNode.value()); } else if (currentName == "rz") { - read_flag[5] = true; als.Delta.z = (ai_real)std::atof(currentNode.value()); } }