From e208720200ae4f1faeddbd278956ba32f2714a66 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Mon, 31 Jul 2006 15:52:21 +0000 Subject: [PATCH] Comment out compare_deltax_deltay() predicate, as it is undocumented, unused in CGAL, and does not have corresponding functor. --- .../include/CGAL/Cartesian/predicates_on_points_2.h | 3 +++ Cartesian_kernel/include/CGAL/predicates/kernel_ftC2.h | 3 +++ .../include/CGAL/Homogeneous/predicates_on_pointsH2.h | 3 +++ .../test/Kernel_23/include/CGAL/_test_further_fct_point_2.h | 3 +++ 4 files changed, 12 insertions(+) diff --git a/Cartesian_kernel/include/CGAL/Cartesian/predicates_on_points_2.h b/Cartesian_kernel/include/CGAL/Cartesian/predicates_on_points_2.h index 4195c47f748..e5705b4d4ad 100644 --- a/Cartesian_kernel/include/CGAL/Cartesian/predicates_on_points_2.h +++ b/Cartesian_kernel/include/CGAL/Cartesian/predicates_on_points_2.h @@ -37,6 +37,8 @@ equal_xy(const PointC2 &p, const PointC2 &q) return p.x() == q.x() && p.y() == q.y(); } +#if 0 +// Unused, undocumented, un-functorized. template < class K > inline Comparison_result @@ -47,6 +49,7 @@ compare_deltax_deltay(const PointC2& p, { return compare_deltax_deltayC2(p.x(), q.x(), r.y(), s.y()); } +#endif template < class K > inline diff --git a/Cartesian_kernel/include/CGAL/predicates/kernel_ftC2.h b/Cartesian_kernel/include/CGAL/predicates/kernel_ftC2.h index 3a5653ad1d9..94ef1dc7287 100644 --- a/Cartesian_kernel/include/CGAL/predicates/kernel_ftC2.h +++ b/Cartesian_kernel/include/CGAL/predicates/kernel_ftC2.h @@ -380,6 +380,8 @@ compare_slopesC2(const FT &s1_src_x, const FT &s1_src_y, const FT &s1_tgt_x, } +#if 0 +// Unused, undocumented, un-functorized. template < class FT > inline typename Compare::result_type @@ -388,6 +390,7 @@ compare_deltax_deltayC2(const FT &px, const FT &qx, { return CGAL_NTS compare(CGAL_NTS abs(px-qx), CGAL_NTS abs(ry-sy)); } +#endif template < class FT > inline diff --git a/Homogeneous_kernel/include/CGAL/Homogeneous/predicates_on_pointsH2.h b/Homogeneous_kernel/include/CGAL/Homogeneous/predicates_on_pointsH2.h index 1bbe631ea49..e6887965820 100644 --- a/Homogeneous_kernel/include/CGAL/Homogeneous/predicates_on_pointsH2.h +++ b/Homogeneous_kernel/include/CGAL/Homogeneous/predicates_on_pointsH2.h @@ -86,6 +86,8 @@ _where_wrt_L_wedge( const PointH2& p, const PointH2& q ) return ON_ORIENTED_BOUNDARY; } +#if 0 +// Unused, undocumented, un-functorized. template < class R > CGAL_KERNEL_MEDIUM_INLINE Comparison_result @@ -98,6 +100,7 @@ compare_deltax_deltay(const PointH2& p, CGAL_NTS abs(p.hx()*q.hw() - q.hx()*p.hw()) * r.hw()*s.hw(), CGAL_NTS abs(r.hy()*s.hw() - s.hy()*r.hw()) * p.hw()*q.hw()); } +#endif CGAL_END_NAMESPACE diff --git a/Kernel_23/test/Kernel_23/include/CGAL/_test_further_fct_point_2.h b/Kernel_23/test/Kernel_23/include/CGAL/_test_further_fct_point_2.h index 734cbef7dfa..0de386645ae 100644 --- a/Kernel_23/test/Kernel_23/include/CGAL/_test_further_fct_point_2.h +++ b/Kernel_23/test/Kernel_23/include/CGAL/_test_further_fct_point_2.h @@ -41,12 +41,15 @@ _test_further_fct_point_2(const R& ) CGAL::Point_2 p8( RT(24), RT( 9), RT(3) ); // ( 8, 3) CGAL::Point_2 p9( RT( 6), RT(10), RT(1) ); // ( 6,10) +#if 0 + // This function is not documented, not used in CGAL, and has no functor. assert( CGAL::compare_deltax_deltay( p1, p4, p5, p6) == CGAL::SMALLER); assert( CGAL::compare_deltax_deltay( p5, p6, p2, p1) == CGAL::LARGER); assert( CGAL::compare_deltax_deltay( p6, p5, p2, p1) == CGAL::LARGER); assert( CGAL::compare_deltax_deltay( p1, p2, p5, p6) == CGAL::SMALLER); assert( CGAL::compare_deltax_deltay( p4, p3, p3, p7) == CGAL::EQUAL); assert( CGAL::compare_deltax_deltay( p2, p3, p3, p6) == CGAL::EQUAL); +#endif std::cout << '.';