[relate] Fix unused typedef warnings

This commit is contained in:
Adam Wulkiewicz
2014-05-30 14:12:14 +02:00
parent a40a86b532
commit 694fbffdeb
5 changed files with 2 additions and 7 deletions

View File

@@ -202,7 +202,6 @@ struct areal_areal
// get and analyse turns
typedef typename turns::get_turns<Geometry1, Geometry2>::turn_info turn_type;
typedef typename std::vector<turn_type>::iterator turn_iterator;
std::vector<turn_type> turns;
interrupt_policy_areal_areal<Result> interrupt_policy(geometry1, geometry2, result);

View File

@@ -205,7 +205,6 @@ struct linear_areal
// get and analyse turns
typedef typename turns::get_turns<Geometry1, Geometry2>::turn_info turn_type;
typedef typename std::vector<turn_type>::iterator turn_iterator;
std::vector<turn_type> turns;
interrupt_policy_linear_areal<Geometry2, Result> interrupt_policy(geometry2, result);

View File

@@ -120,7 +120,6 @@ struct linear_linear
// get and analyse turns
typedef typename turns::get_turns<Geometry1, Geometry2>::turn_info turn_type;
typedef typename std::vector<turn_type>::iterator turn_iterator;
std::vector<turn_type> turns;
interrupt_policy_linear_linear<Result> interrupt_policy(result);

View File

@@ -56,7 +56,6 @@ std::pair<bool, bool> point_multipoint_check(Point const& point, MultiPoint cons
// point_in_geometry could be used here but why iterate over MultiPoint twice?
// we must search for a point in the exterior because all points in MultiPoint can be equal
typedef typename boost::range_value<MultiPoint>::type point_type;
typedef typename boost::range_iterator<MultiPoint const>::type iterator;
iterator it = boost::begin(multi_point);
iterator last = boost::end(multi_point);

View File

@@ -70,8 +70,6 @@ struct get_turns
Geometry2 const& geometry2,
InterruptPolicy & interrupt_policy)
{
typedef typename geometry::point_type<Geometry1>::type point1_type;
static const bool reverse1 = detail::overlay::do_reverse<geometry::point_order<Geometry1>::value>::value;
static const bool reverse2 = detail::overlay::do_reverse<geometry::point_order<Geometry2>::value>::value;
@@ -84,7 +82,8 @@ struct get_turns
reverse1,
reverse2,
GetTurnPolicy
>::apply(0, geometry1, 1, geometry2, detail::no_rescale_policy(), turns, interrupt_policy);
>::apply(0, geometry1, 1, geometry2,
detail::no_rescale_policy(), turns, interrupt_policy);
}
};