From 111e30e11216092af042dd5e390c7ec1f7816499 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Mon, 13 Apr 2015 14:48:12 +0200 Subject: [PATCH] [MeL/ME] ElemValMod: Removed getMeshValues(). --- .../MeshEditing/ElementValueModification.cpp | 26 ------------------- .../MeshEditing/ElementValueModification.h | 2 -- 2 files changed, 28 deletions(-) diff --git a/MeshLib/MeshEditing/ElementValueModification.cpp b/MeshLib/MeshEditing/ElementValueModification.cpp index dee36a008a6..4b1f0e5d9a4 100644 --- a/MeshLib/MeshEditing/ElementValueModification.cpp +++ b/MeshLib/MeshEditing/ElementValueModification.cpp @@ -21,34 +21,8 @@ #include "MeshLib/Mesh.h" #include "MeshLib/Elements/Element.h" - namespace MeshLib { -std::vector<unsigned> ElementValueModification::getMeshValues(const MeshLib::Mesh &mesh) -{ - const std::size_t nElements (mesh.getNElements()); - std::vector<unsigned> value_mapping; - for (unsigned i=0; i<nElements; ++i) - { - bool exists(false); - unsigned value (mesh.getElement(i)->getValue()); - const unsigned nValues (value_mapping.size()); - for (unsigned j=0; j<nValues; ++j) - { - if (value == value_mapping[j]) - { - exists = true; - break; - } - } - if (!exists) - value_mapping.push_back(value); - } - - std::sort(value_mapping.begin(), value_mapping.end()); - return value_mapping; -} - bool ElementValueModification::replace(MeshLib::Mesh &mesh, std::string const& property_name, unsigned old_value, unsigned new_value, bool replace_if_exists) diff --git a/MeshLib/MeshEditing/ElementValueModification.h b/MeshLib/MeshEditing/ElementValueModification.h index 2464c43b574..cb2a2128f2f 100644 --- a/MeshLib/MeshEditing/ElementValueModification.h +++ b/MeshLib/MeshEditing/ElementValueModification.h @@ -75,8 +75,6 @@ private: return value_mapping; } - /// Returns the values of elements within the mesh - static std::vector<unsigned> getMeshValues(const MeshLib::Mesh &mesh); }; } // end namespace MeshLib -- GitLab