From d1b14ab745ad34d9ab100457e9a765b831161331 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 28 May 2015 06:26:48 +0200 Subject: [PATCH] [GL] Cleanup: Removed unused method PointVec::getSubset. # Conflicts: # GeoLib/PointVec.cpp # GeoLib/PointVec.h --- GeoLib/PointVec.cpp | 10 ---------- GeoLib/PointVec.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/GeoLib/PointVec.cpp b/GeoLib/PointVec.cpp index dab41d47257..ff6514d04d0 100644 --- a/GeoLib/PointVec.cpp +++ b/GeoLib/PointVec.cpp @@ -207,14 +207,4 @@ void PointVec::correctNameIDMapping() } } -std::vector<GeoLib::Point*>* PointVec::getSubset(const std::vector<std::size_t> &subset) const -{ - std::vector<GeoLib::Point*> *new_points (new std::vector<GeoLib::Point*>(subset.size())); - - const std::size_t nPoints(subset.size()); - for (std::size_t i = 0; i < nPoints; i++) - (*new_points)[i] = new GeoLib::Point(*(*this->_data_vec)[subset[i]]); - - return new_points; -} } // end namespace diff --git a/GeoLib/PointVec.h b/GeoLib/PointVec.h index d768d252850..3fbed3af532 100644 --- a/GeoLib/PointVec.h +++ b/GeoLib/PointVec.h @@ -100,9 +100,6 @@ public: const GeoLib::AABB<GeoLib::Point>& getAABB () const; - /// Returns a subset of this point vector containing only the points specified in "subset" - std::vector<GeoLib::Point*>* getSubset(const std::vector<std::size_t> &subset) const; - private: /** * Removes points out of the given point set that have the (nearly) same coordinates, i.e. -- GitLab