From 9147b82e540b2c563620e054136a10e8a0fe1afc Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Mon, 24 Apr 2017 01:00:45 +0200 Subject: [PATCH] [NL] Remove no longer used private ctor. Previously used by single-component deriveBoundaryConstrainedMap. --- NumLib/DOF/LocalToGlobalIndexMap.cpp | 27 --------------------------- NumLib/DOF/LocalToGlobalIndexMap.h | 11 ----------- 2 files changed, 38 deletions(-) diff --git a/NumLib/DOF/LocalToGlobalIndexMap.cpp b/NumLib/DOF/LocalToGlobalIndexMap.cpp index 8aa12a72be0..21fdc1c5d60 100644 --- a/NumLib/DOF/LocalToGlobalIndexMap.cpp +++ b/NumLib/DOF/LocalToGlobalIndexMap.cpp @@ -194,33 +194,6 @@ LocalToGlobalIndexMap::LocalToGlobalIndexMap( } } - -LocalToGlobalIndexMap::LocalToGlobalIndexMap( - std::vector<std::unique_ptr<MeshLib::MeshSubsets>>&& mesh_subsets, - int const component_id, - std::vector<MeshLib::Element*> const& elements, - NumLib::MeshComponentMap&& mesh_component_map) - : _mesh_subsets(std::move(mesh_subsets)), - _mesh_component_map(std::move(mesh_component_map)), - _variable_component_offsets(to_cumulative(std::vector<unsigned>(1,1))) // Single variable only. -{ - // There is only one mesh_subsets in the vector _mesh_subsets. - assert(_mesh_subsets.size() == 1); - auto const mss = *_mesh_subsets.front(); - - // For all MeshSubset in mesh_subsets and each element of that MeshSubset - // save a line of global indices. - for (MeshLib::MeshSubset const* const ms : mss) - { - std::size_t const mesh_id = ms->getMeshID(); - - findGlobalIndices(elements.cbegin(), elements.cend(), ms->getNodes(), mesh_id, - component_id, 0); // There is only one component to - // write out, therefore the zero - // parameter. - } -} - LocalToGlobalIndexMap::LocalToGlobalIndexMap( std::vector<std::unique_ptr<MeshLib::MeshSubsets>>&& mesh_subsets, std::vector<std::size_t> const& global_component_ids, diff --git a/NumLib/DOF/LocalToGlobalIndexMap.h b/NumLib/DOF/LocalToGlobalIndexMap.h index b304aae6841..460d7b73a41 100644 --- a/NumLib/DOF/LocalToGlobalIndexMap.h +++ b/NumLib/DOF/LocalToGlobalIndexMap.h @@ -163,17 +163,6 @@ public: } private: - /// Private constructor used by internally created local-to-global index - /// maps. The mesh_component_map is passed as argument instead of being - /// created by the constructor. - /// \attention The passed mesh_component_map is in undefined state after - /// this construtor. - explicit LocalToGlobalIndexMap( - std::vector<std::unique_ptr<MeshLib::MeshSubsets>>&& mesh_subsets, - int const component_id, - std::vector<MeshLib::Element*> const& elements, - NumLib::MeshComponentMap&& mesh_component_map); - /// Private constructor used by internally created local-to-global index /// maps. The mesh_component_map is passed as argument instead of being /// created by the constructor. -- GitLab