From 1f3a9a01adf155c2d622ffd0e161cde3d7ecd21e Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Sun, 20 Jan 2008 14:48:37 +0000 Subject: [PATCH] Remove unreachable code (pgCC warnings). --- Min_annulus_d/include/CGAL/Min_annulus_d.h | 2 -- .../include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterC2.h | 2 -- .../include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterH2.h | 2 -- 3 files changed, 6 deletions(-) diff --git a/Min_annulus_d/include/CGAL/Min_annulus_d.h b/Min_annulus_d/include/CGAL/Min_annulus_d.h index d4e7368a0b1..ccb888dbc1a 100644 --- a/Min_annulus_d/include/CGAL/Min_annulus_d.h +++ b/Min_annulus_d/include/CGAL/Min_annulus_d.h @@ -106,8 +106,6 @@ namespace MA_detail { if (i == d_+1) return -h_p * h_p; return nt_0_; } - CGAL_optimisation_assertion(false); // never get here - return nt_0_; } private: diff --git a/Min_ellipse_2/include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterC2.h b/Min_ellipse_2/include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterC2.h index cf47003a3b9..8c1d6a1131d 100644 --- a/Min_ellipse_2/include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterC2.h +++ b/Min_ellipse_2/include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterC2.h @@ -68,8 +68,6 @@ are_ordered_along_lineC2( const PT& p, const PT& q, const PT& r, else return( ( ( py < qy) && ( qy < ry)) || ( ( ry < qy) && ( qy < py))); - // keeps g++ happy - return false; } template < class PT_, class DA_ > diff --git a/Min_ellipse_2/include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterH2.h b/Min_ellipse_2/include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterH2.h index 664a058a124..030ae4fe929 100644 --- a/Min_ellipse_2/include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterH2.h +++ b/Min_ellipse_2/include/CGAL/Min_ellipse_2/Min_ellipse_2_adapterH2.h @@ -72,8 +72,6 @@ are_ordered_along_lineH2( const PT& p, const PT& q, const PT& r, else return( ( ( phy*qhw < qhy*phw) && ( qhy*rhw < rhy*qhw)) || ( ( rhy*qhw < qhy*rhw) && ( qhy*phw < phy*qhw))); - // keeps g++ happy - return false; } template < class PT_, class DA_ >