From 0170ebe9ca4efff239704bd216f1615445d397cc Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Fri, 4 Jul 2014 19:04:04 +0200 Subject: [PATCH] [strategies] Remove inconsistent (and for now not needed) operators in projected_point_ax_result --- .../cartesian/distance_projected_point.hpp | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/include/boost/geometry/strategies/cartesian/distance_projected_point.hpp b/include/boost/geometry/strategies/cartesian/distance_projected_point.hpp index 43adbcb03..e2cda981d 100644 --- a/include/boost/geometry/strategies/cartesian/distance_projected_point.hpp +++ b/include/boost/geometry/strategies/cartesian/distance_projected_point.hpp @@ -286,37 +286,11 @@ struct projected_point_ax_result T atd, xtd; - // ^.... - // |.... - // +---> - friend bool operator<(projected_point_ax_result const& left, - projected_point_ax_result const& right) - { - return left.atd < right.atd && left.xtd < right.xtd; - } - - // ......... - // ......... - // ... - // ^ ... - // | ... - // +---> ... friend bool operator>(projected_point_ax_result const& left, projected_point_ax_result const& right) { return left.atd > right.atd || left.xtd > right.xtd; } - - // ...... - // ^ . - // | . - // +--->. - friend bool operator==(projected_point_ax_result const& left, - projected_point_ax_result const& right) - { - return ( left.atd == right.atd && left.xtd <= right.xtd ) - || ( left.atd <= right.atd && left.xtd == right.xtd ); - } }; // This strategy returns 2-component Point/Segment distance.