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