diff --git a/GeoLib/Polyline.cpp b/GeoLib/Polyline.cpp
index c85f32f5a8a9004488e769774bb70c9b3a131eaf..3056dd7e4a48f7e1b7ac010d5ff315c1394ec7fd 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 8373e14fc0c2170c41ffd72c1098552e7a83f15b..dc421f526f0fea7a112174ad973c812b0a350344 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,