From cfbecc9935c20aab794bc8cd123ef6b34820f4af Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Mon, 9 Jun 2014 12:39:58 +0200 Subject: [PATCH] [buffer] remove more unused functionality --- .../algorithms/buffer/buffer_policies.hpp | 2 - .../algorithms/buffer/buffered_ring.hpp | 49 +------------------ 2 files changed, 1 insertion(+), 50 deletions(-) diff --git a/include/boost/geometry/extensions/algorithms/buffer/buffer_policies.hpp b/include/boost/geometry/extensions/algorithms/buffer/buffer_policies.hpp index 9c7d6cf68..cea2e2077 100644 --- a/include/boost/geometry/extensions/algorithms/buffer/buffer_policies.hpp +++ b/include/boost/geometry/extensions/algorithms/buffer/buffer_policies.hpp @@ -111,11 +111,9 @@ struct buffer_turn_operation : public detail::overlay::traversal_turn_operation { int piece_index; - bool include_in_occupation_map; inline buffer_turn_operation() : piece_index(-1) - , include_in_occupation_map(false) {} }; diff --git a/include/boost/geometry/extensions/algorithms/buffer/buffered_ring.hpp b/include/boost/geometry/extensions/algorithms/buffer/buffered_ring.hpp index 424a0b4d8..25268cc80 100644 --- a/include/boost/geometry/extensions/algorithms/buffer/buffered_ring.hpp +++ b/include/boost/geometry/extensions/algorithms/buffer/buffered_ring.hpp @@ -70,7 +70,7 @@ struct buffered_ring_collection : public std::vector }} // namespace detail::buffer -// Turn of concept checking (for now) +// Turn off concept checking (for now) namespace dispatch { template @@ -129,7 +129,6 @@ struct tag > - 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::value -// >::value, -// geometry::closure::value, - - typedef typename boost::range_iterator::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 struct within <