From a57b42686aa07cad5b04de53bc3cf225292dee8e Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 28 Feb 2019 12:43:01 +0100 Subject: [PATCH] [GL] Polyline: Rm unused function updatePointIDs(). --- GeoLib/Polyline.cpp | 24 ------------------------ GeoLib/Polyline.h | 3 --- 2 files changed, 27 deletions(-) diff --git a/GeoLib/Polyline.cpp b/GeoLib/Polyline.cpp index c85f32f5a8a..3056dd7e4a4 100644 --- a/GeoLib/Polyline.cpp +++ b/GeoLib/Polyline.cpp @@ -441,30 +441,6 @@ Location Polyline::getLocationOfPoint (std::size_t k, GeoLib::Point const & pnt) return Location::BETWEEN; } -void Polyline::updatePointIDs(const std::vector<std::size_t> &pnt_ids) -{ - for (auto it = this->_ply_pnt_ids.begin(); it!=this->_ply_pnt_ids.end();) - { - if (pnt_ids[*it] != *it) - { - if (it != this->_ply_pnt_ids.begin() && - (pnt_ids[*it] == pnt_ids[*(it - 1)])) - { - it = this->_ply_pnt_ids.erase(it); - } - else - { - *it = pnt_ids[*it]; - ++it; - } - } - else - { - ++it; - } - } -} - double Polyline::getDistanceAlongPolyline(const MathLib::Point3d& pnt, const double epsilon_radius) const { diff --git a/GeoLib/Polyline.h b/GeoLib/Polyline.h index 8373e14fc0c..dc421f526f0 100644 --- a/GeoLib/Polyline.h +++ b/GeoLib/Polyline.h @@ -143,9 +143,6 @@ public: */ void closePolyline(); - /// Update a the PointIDs vector based on given map, e.g. after the corresponding PointVec has changed - void updatePointIDs(const std::vector<std::size_t> &pnt_ids); - /// Constructs one polyline from a vector of connected polylines. /// All polylines in this vector need to reference the same point vector. static Polyline* constructPolylineFromSegments(const std::vector<Polyline*> &ply_vec, -- GitLab