diff --git a/Packages/Snap_rounding_2/include/CGAL/Snap_rounding_2.h b/Packages/Snap_rounding_2/include/CGAL/Snap_rounding_2.h index 46dd4ea8808..513dbd99d58 100644 --- a/Packages/Snap_rounding_2/include/CGAL/Snap_rounding_2.h +++ b/Packages/Snap_rounding_2/include/CGAL/Snap_rounding_2.h @@ -159,9 +159,6 @@ public: typedef typename Segments_container::const_iterator Segment_const_iterator; typedef typename Segments_container::iterator Segment_iterator; - // static bool erase_hp; - // static inline bool get_erase_hp() {return(erase_hp);} - //! A constructor Snap_rounding_2(Segment_const_iterator begin, Segment_const_iterator end, @@ -316,12 +313,10 @@ Hot_Pixel::Hot_Pixel(const Point_2& inp_point,NT inp_pixel_size) : template Hot_Pixel::~Hot_Pixel() { - // if(Snap_rounding_2::get_erase_hp()) { - delete(right_seg); - delete(left_seg); - delete(top_seg); - delete(bot_seg); - // } + delete(right_seg); + delete(left_seg); + delete(top_seg); + delete(bot_seg); } template @@ -715,9 +710,7 @@ void Snap_rounding_2::iterate( // segment entirely inside a pixel hp = new Hot_Pixel(iter->source(),pixel_size); seg_output.push_back(hp->get_center(int_output)); - //erase_hp = true; delete(hp); - // erase_hp = false; } else { seg_output.push_back((*hot_pixel_iter)->get_center(int_output)); if(number_of_intersections > 1) { @@ -745,8 +738,7 @@ Snap_rounding_2::Snap_rounding_2( bool int_output, unsigned int number_of_kd_trees) { - // initialize approximation angles map - //erase_hp = false; + // initialize approximation angles map number_of_segments = 0; // copy segments list while(begin != end) { @@ -764,9 +756,6 @@ Snap_rounding_2::Snap_rounding_2( template typename Snap_rounding_2::Direction Snap_rounding_2::seg_dir; -//template -//bool Snap_rounding_2::erase_hp = false; - CGAL_END_NAMESPACE #endif // CGAL_ISR_2_H