From 8b39925a607fba90f7c8c50cc0fe1ea871c7daa8 Mon Sep 17 00:00:00 2001 From: Giles Bathgate Date: Tue, 24 Nov 2020 19:08:35 +0000 Subject: [PATCH] Fix structurally dead code in SNC_simplify.h --- Nef_3/include/CGAL/Nef_3/SNC_simplify.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Nef_3/include/CGAL/Nef_3/SNC_simplify.h b/Nef_3/include/CGAL/Nef_3/SNC_simplify.h index f786b3f2b34..23f87181b54 100644 --- a/Nef_3/include/CGAL/Nef_3/SNC_simplify.h +++ b/Nef_3/include/CGAL/Nef_3/SNC_simplify.h @@ -191,16 +191,6 @@ class SNC_simplify_base : public SNC_decorator { return (sp1 == sp2.antipode()); } - bool simplify_redundant_box_vertex(Vertex_handle v, bool snc_computed) { - //CGAL_warning("altered code"); - return false; - if(snc_computed) return false; - if(!Infi_box::is_redundant_box_vertex(*v)) return false; - this->sncp()->delete_vertex(v); - simplified = true; - return true; - } - bool simplify_redundant_vertex_in_volume(Vertex_handle v) { if(is_part_of_volume(v)) { // CGAL_NEF_TRACEN("mark("<index(v)<<")="<mark()<<", "<< @@ -295,7 +285,6 @@ class SNC_simplify_base : public SNC_decorator { while( v != (*this->sncp()).vertices_end()) { Vertex_iterator v_next(v); ++v_next; - if(!simplify_redundant_box_vertex(v, snc_computed)) if(!simplify_redundant_vertex_in_volume(v)) if(!simplify_redundant_vertex_on_facet(v)) simplify_redundant_vertex_on_edge(v, snc_computed);