Comment out compare_deltax_deltay() predicate, as it is undocumented,

unused in CGAL, and does not have corresponding functor.
This commit is contained in:
Sylvain Pion 2006-07-31 15:52:21 +00:00
parent 78036ff1b5
commit e208720200
4 changed files with 12 additions and 0 deletions

View File

@ -37,6 +37,8 @@ equal_xy(const PointC2<K> &p, const PointC2<K> &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<K>& p,
{
return compare_deltax_deltayC2(p.x(), q.x(), r.y(), s.y());
}
#endif
template < class K >
inline

View File

@ -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<FT>::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

View File

@ -86,6 +86,8 @@ _where_wrt_L_wedge( const PointH2<R>& p, const PointH2<R>& 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<R>& 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

View File

@ -41,12 +41,15 @@ _test_further_fct_point_2(const R& )
CGAL::Point_2<R> p8( RT(24), RT( 9), RT(3) ); // ( 8, 3)
CGAL::Point_2<R> 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 << '.';