From cb2bcb9102e3af3c9490b9c798c4d81cff51d437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Sat, 20 Mar 2021 17:43:56 +0100 Subject: [PATCH] Remove ToS2::delete_faces() --- .../include/CGAL/Delaunay_triangulation_on_sphere_2.h | 5 +++-- .../include/CGAL/Triangulation_on_sphere_2.h | 10 ---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h b/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h index a9eb95ef65b..33101e4857e 100644 --- a/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h +++ b/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h @@ -91,7 +91,6 @@ public: using Base::orientation_on_sphere; using Base::show_face; using Base::show_vertex; - using Base::delete_faces; using Base::compare; using Base::VERTEX; using Base::EDGE; @@ -565,7 +564,9 @@ insert(const Point& p, Locate_type lt, Face_handle loc, int /*li*/) v = tds().star_hole(edges.begin(), edges.end()); v->set_point(p); - delete_faces(faces.begin(), faces.end()); + + for(Face_handle f : faces) + tds().delete_face(f); if(lt != FACE) update_ghost_faces(v); diff --git a/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h b/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h index be649156f24..6c76587f38e 100644 --- a/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h +++ b/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h @@ -377,16 +377,6 @@ public: // IN/OUT Vertex_handle file_input(std::istream& is); void file_output(std::ostream& os) const; - - /*-----------------------TEMPLATE MEMBERS---------------------------*/ -public: - template - void delete_faces(FaceIt face_begin, FaceIt face_end) - { - FaceIt fit = face_begin; - for(; fit!=face_end; ++fit) - tds().delete_face(*fit); - } }; // copy constructor duplicates vertices and faces