From d6ee9da9dfbdcd2090e351323a09ce959d94a1e8 Mon Sep 17 00:00:00 2001 From: Susan Hert Date: Tue, 10 Jul 2001 12:58:23 +0000 Subject: [PATCH] replaced last_edge_info with back member of list --- .../Partition_2/include/CGAL/Partition_vertex_map.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Packages/Partition_2/include/CGAL/Partition_vertex_map.h b/Packages/Partition_2/include/CGAL/Partition_vertex_map.h index daf62c10d37..69df417852b 100644 --- a/Packages/Partition_2/include/CGAL/Partition_vertex_map.h +++ b/Packages/Partition_2/include/CGAL/Partition_vertex_map.h @@ -225,14 +225,6 @@ public: return (num_unshared > 2); } - Edge_info last_edge_info() const - { - Self_const_iterator e_it = begin(); - Self_const_iterator prev_e_it = end(); - - for (; e_it != end(); prev_e_it = e_it++) {} - return *prev_e_it; - } // NOTE: the edges here are sorted in CW order so the next CCW edge // comes BEFORE the edge with endpoint v_it in the sorted list @@ -392,7 +384,7 @@ public: #endif *result = (*v_it).first; result++; - next_v_it = (*v_it).second.last_edge_info().endpoint(); + next_v_it = (*v_it).second.back().endpoint(); #ifdef CGAL_PARTITION_CHECK_DEBUG std::cout << "union_vertices: inserting " << (*next_v_it).first << std::endl;