Remove unused parameters (#608)

[algorithms] Remove unused parameters

* [algorithms] Use ignore unused instead of macros

* [algorithms] Use ignore unused instead of macros 2
This commit is contained in:
Vissarion Fisikopoulos
2019-07-02 19:30:51 +03:00
committed by GitHub
parent 5a13eea5ed
commit c92ccab382
3 changed files with 6 additions and 4 deletions

View File

@@ -153,12 +153,14 @@ struct base_turn_handler
typename UmbrellaStrategy,
typename TurnInfo
>
static inline void both_collinear(UniqueSubRange1 const& range_p,
static inline void both_collinear(
UniqueSubRange1 const& range_p,
UniqueSubRange2 const& range_q,
UmbrellaStrategy const& umbrella_strategy,
UmbrellaStrategy const&,
std::size_t index_p, std::size_t index_q,
TurnInfo& ti)
{
boost::ignore_unused(range_p, range_q);
BOOST_GEOMETRY_ASSERT(IndexP + IndexQ == 1);
BOOST_GEOMETRY_ASSERT(index_p > 0 && index_p <= 2);
BOOST_GEOMETRY_ASSERT(index_q > 0 && index_q <= 2);

View File

@@ -24,7 +24,7 @@ namespace boost { namespace geometry { namespace index { namespace detail {
// Util to distinguish between default and non-default index strategy
template <typename Box, typename Strategy>
inline bool disjoint_box_box(Box const& box1, Box const& box2, Strategy const& strategy)
inline bool disjoint_box_box(Box const& box1, Box const& box2, Strategy const&)
{
return geometry::detail::disjoint::disjoint_box_box(box1, box2,
typename Strategy::disjoint_box_box_strategy_type());

View File

@@ -304,7 +304,7 @@ struct strategy_type< parameters<Parameters, Strategy> >
template <typename Parameters>
struct get_strategy_impl
{
static inline default_strategy apply(Parameters const& parameters)
static inline default_strategy apply(Parameters const&)
{
return default_strategy();
}