Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85411 - in trunk/boost/geometry: algorithms algorithms/detail algorithms/detail/overlay algorithms/detail/sections strategies/agnostic strategies/cartesian
From: barend.gehrels_at_[hidden]
Date: 2013-08-20 15:42:21


Author: barendgehrels
Date: 2013-08-20 15:42:20 EDT (Tue, 20 Aug 2013)
New Revision: 85411
URL: http://svn.boost.org/trac/boost/changeset/85411

Log:
[geometry] cleanup: removed unused typedefs as warned for by gcc 4.8

Text files modified:
   trunk/boost/geometry/algorithms/detail/overlay/get_turns.hpp | 15 +++++++--------
   trunk/boost/geometry/algorithms/detail/overlay/self_turn_points.hpp | 8 --------
   trunk/boost/geometry/algorithms/detail/point_on_border.hpp | 2 --
   trunk/boost/geometry/algorithms/detail/sections/sectionalize.hpp | 2 --
   trunk/boost/geometry/algorithms/num_points.hpp | 3 ---
   trunk/boost/geometry/algorithms/unique.hpp | 2 --
   trunk/boost/geometry/strategies/agnostic/simplify_douglas_peucker.hpp | 6 ------
   trunk/boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp | 4 +---
   8 files changed, 8 insertions(+), 34 deletions(-)

Modified: trunk/boost/geometry/algorithms/detail/overlay/get_turns.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/get_turns.hpp Tue Aug 20 14:10:09 2013 (r85410)
+++ trunk/boost/geometry/algorithms/detail/overlay/get_turns.hpp 2013-08-20 15:42:20 EDT (Tue, 20 Aug 2013) (r85411)
@@ -256,7 +256,6 @@
                     advance_to_non_duplicate_next(nd_next2, it2, sec2);
 
                     typedef typename boost::range_value<Turns>::type turn_info;
- typedef typename turn_info::point_type ip;
 
                     turn_info ti;
                     ti.operations[0].seg_id = segment_identifier(source_id1,
@@ -838,13 +837,13 @@
 {
     concept::check_concepts_and_equal_dimensions<Geometry1 const, Geometry2 const>();
 
- typedef typename strategy_intersection
- <
- typename cs_tag<Geometry1>::type,
- Geometry1,
- Geometry2,
- typename boost::range_value<Turns>::type
- >::segment_intersection_strategy_type segment_intersection_strategy_type;
+ //typedef typename strategy_intersection
+ // <
+ // typename cs_tag<Geometry1>::type,
+ // Geometry1,
+ // Geometry2,
+ // typename boost::range_value<Turns>::type
+ // >::segment_intersection_strategy_type segment_intersection_strategy_type;
 
     typedef detail::overlay::get_turn_info
         <

Modified: trunk/boost/geometry/algorithms/detail/overlay/self_turn_points.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/self_turn_points.hpp Tue Aug 20 14:10:09 2013 (r85410)
+++ trunk/boost/geometry/algorithms/detail/overlay/self_turn_points.hpp 2013-08-20 15:42:20 EDT (Tue, 20 Aug 2013) (r85411)
@@ -275,14 +275,6 @@
 {
     concept::check<Geometry const>();
 
- typedef typename strategy_intersection
- <
- typename cs_tag<Geometry>::type,
- Geometry,
- Geometry,
- typename boost::range_value<Turns>::type
- >::segment_intersection_strategy_type strategy_type;
-
     typedef detail::overlay::get_turn_info
                         <
                             typename point_type<Geometry>::type,

Modified: trunk/boost/geometry/algorithms/detail/point_on_border.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/point_on_border.hpp Tue Aug 20 14:10:09 2013 (r85410)
+++ trunk/boost/geometry/algorithms/detail/point_on_border.hpp 2013-08-20 15:42:20 EDT (Tue, 20 Aug 2013) (r85411)
@@ -229,8 +229,6 @@
     concept::check<Point>();
     concept::check<Geometry const>();
 
- typedef typename point_type<Geometry>::type point_type;
-
     return dispatch::point_on_border
             <
                 typename tag<Geometry>::type,

Modified: trunk/boost/geometry/algorithms/detail/sections/sectionalize.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/sections/sectionalize.hpp Tue Aug 20 14:10:09 2013 (r85410)
+++ trunk/boost/geometry/algorithms/detail/sections/sectionalize.hpp 2013-08-20 15:42:20 EDT (Tue, 20 Aug 2013) (r85411)
@@ -367,8 +367,6 @@
     static inline void apply(Range const& range, Sections& sections,
                 ring_identifier ring_id)
     {
- typedef model::referring_segment<Point const> segment_type;
-
         cview_type cview(range);
         view_type view(cview);
 

Modified: trunk/boost/geometry/algorithms/num_points.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/num_points.hpp Tue Aug 20 14:10:09 2013 (r85410)
+++ trunk/boost/geometry/algorithms/num_points.hpp 2013-08-20 15:42:20 EDT (Tue, 20 Aug 2013) (r85411)
@@ -22,7 +22,6 @@
 #include <boost/geometry/core/closure.hpp>
 #include <boost/geometry/core/exterior_ring.hpp>
 #include <boost/geometry/core/interior_rings.hpp>
-#include <boost/geometry/core/ring_type.hpp>
 #include <boost/geometry/core/tag_cast.hpp>
 #include <boost/geometry/algorithms/disjoint.hpp>
 #include <boost/geometry/algorithms/not_implemented.hpp>
@@ -82,8 +81,6 @@
     template <typename Polygon>
     static inline std::size_t apply(Polygon const& poly, bool add_for_open)
     {
- typedef typename geometry::ring_type<Polygon>::type ring_type;
-
         std::size_t n = range_count::apply(
                     exterior_ring(poly), add_for_open);
 

Modified: trunk/boost/geometry/algorithms/unique.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/unique.hpp Tue Aug 20 14:10:09 2013 (r85410)
+++ trunk/boost/geometry/algorithms/unique.hpp 2013-08-20 15:42:20 EDT (Tue, 20 Aug 2013) (r85411)
@@ -57,8 +57,6 @@
     template <typename Polygon, typename ComparePolicy>
     static inline void apply(Polygon& polygon, ComparePolicy const& policy)
     {
- typedef typename geometry::ring_type<Polygon>::type ring_type;
-
         range_unique::apply(exterior_ring(polygon), policy);
 
         typename interior_return_type<Polygon>::type rings

Modified: trunk/boost/geometry/strategies/agnostic/simplify_douglas_peucker.hpp
==============================================================================
--- trunk/boost/geometry/strategies/agnostic/simplify_douglas_peucker.hpp Tue Aug 20 14:10:09 2013 (r85410)
+++ trunk/boost/geometry/strategies/agnostic/simplify_douglas_peucker.hpp 2013-08-20 15:42:20 EDT (Tue, 20 Aug 2013) (r85411)
@@ -201,12 +201,6 @@
 
         // Get points, recursively, including them if they are further away
         // than the specified distance
- typedef typename strategy::distance::services::return_type
- <
- distance_strategy_type,
- dp_point_type, dp_point_type
- >::type return_type;
-
         consider(boost::begin(ref_candidates), boost::end(ref_candidates), max_distance, n, strategy);
 
         // Copy included elements to the output

Modified: trunk/boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp
==============================================================================
--- trunk/boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp Tue Aug 20 14:10:09 2013 (r85410)
+++ trunk/boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp 2013-08-20 15:42:20 EDT (Tue, 20 Aug 2013) (r85411)
@@ -151,9 +151,7 @@
             , sum_a2(calculation_type())
             , sum_x(calculation_type())
             , sum_y(calculation_type())
- {
- typedef calculation_type ct;
- }
+ {}
     };
 
 public :


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk