diff --git a/include/boost/geometry/algorithms/detail/disjoint/point_geometry.hpp b/include/boost/geometry/algorithms/detail/disjoint/point_geometry.hpp index 9064905f2..9ae43f73d 100644 --- a/include/boost/geometry/algorithms/detail/disjoint/point_geometry.hpp +++ b/include/boost/geometry/algorithms/detail/disjoint/point_geometry.hpp @@ -21,8 +21,6 @@ #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISJOINT_POINT_GEOMETRY_HPP #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISJOINT_POINT_GEOMETRY_HPP -#include - #include #include @@ -39,29 +37,13 @@ namespace detail { namespace disjoint { -struct disjoint_point_segment -{ - template - static inline bool apply(Point const& point, Segment const& segment) - { - typedef geometry::model::referring_segment other_segment; - - other_segment other(point, point); - return disjoint_segment - < - Segment, other_segment - >::apply(segment, other); - } -}; - - struct reverse_covered_by { template static inline bool apply(Geometry1 const& geometry1, Geometry2 const& geometry2) { - return !geometry::covered_by(geometry1, geometry2); + return ! geometry::covered_by(geometry1, geometry2); } }; @@ -91,7 +73,7 @@ struct disjoint template struct disjoint - : detail::disjoint::disjoint_point_segment + : detail::disjoint::reverse_covered_by {};