mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-09 23:22:10 +00:00
[buffer] remove more unused functionality
This commit is contained in:
@@ -111,11 +111,9 @@ struct buffer_turn_operation
|
||||
: public detail::overlay::traversal_turn_operation<Point, SegmentRatio>
|
||||
{
|
||||
int piece_index;
|
||||
bool include_in_occupation_map;
|
||||
|
||||
inline buffer_turn_operation()
|
||||
: piece_index(-1)
|
||||
, include_in_occupation_map(false)
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ struct buffered_ring_collection : public std::vector<Ring>
|
||||
}} // namespace detail::buffer
|
||||
|
||||
|
||||
// Turn of concept checking (for now)
|
||||
// Turn off concept checking (for now)
|
||||
namespace dispatch
|
||||
{
|
||||
template <typename Geometry, bool IsConst>
|
||||
@@ -129,7 +129,6 @@ struct tag<detail::buffer::buffered_ring_collection<Ring> >
|
||||
|
||||
|
||||
|
||||
|
||||
namespace core_dispatch
|
||||
{
|
||||
|
||||
@@ -191,52 +190,6 @@ struct copy_segments
|
||||
>
|
||||
{};
|
||||
|
||||
// adapted from now refactored point_in_ring
|
||||
struct point_in_buffered_ring
|
||||
{
|
||||
template
|
||||
<
|
||||
typename Point,
|
||||
typename Ring,
|
||||
typename Strategy
|
||||
>
|
||||
static inline int apply(Point const& point, Ring const& ring,
|
||||
Strategy const& strategy)
|
||||
{
|
||||
boost::ignore_unused_variable_warning(strategy);
|
||||
|
||||
if (boost::size(ring) < 4u)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
// TODO: if this code is, in the end, still used, adapt for open/ccw rings
|
||||
// Currently it is apparently not used
|
||||
// order_as_direction
|
||||
// <
|
||||
// geometry::point_order<MultiGeometry>::value
|
||||
// >::value,
|
||||
// geometry::closure<MultiGeometry>::value,
|
||||
|
||||
typedef typename boost::range_iterator<Ring const>::type iterator_type;
|
||||
typename Strategy::state_type state;
|
||||
iterator_type it = boost::begin(ring);
|
||||
|
||||
for (iterator_type previous = it++;
|
||||
it != boost::end(ring);
|
||||
++previous, ++it)
|
||||
{
|
||||
if (! strategy.apply(point, *previous, *it, state))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return strategy.result(state);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
template <typename Point, typename MultiGeometry>
|
||||
struct within
|
||||
<
|
||||
|
||||
Reference in New Issue
Block a user