diff --git a/AABB_tree/include/CGAL/internal/AABB_tree/AABB_search_tree.h b/AABB_tree/include/CGAL/internal/AABB_tree/AABB_search_tree.h index 944fb5a82b9..9815caefb45 100644 --- a/AABB_tree/include/CGAL/internal/AABB_tree/AABB_search_tree.h +++ b/AABB_tree/include/CGAL/internal/AABB_tree/AABB_search_tree.h @@ -125,7 +125,6 @@ namespace CGAL Point_and_primitive_id closest_point(const Point& query) const { - typedef typename Add_decorated_point::Point_3 Decorated_point; Neighbor_search search(*m_p_tree, query, 1); return Point_and_primitive_id(static_cast(search.begin()->first), search.begin()->first.id()); } diff --git a/AABB_tree/include/CGAL/internal/AABB_tree/nearest_point_segment_3.h b/AABB_tree/include/CGAL/internal/AABB_tree/nearest_point_segment_3.h index 08372a62fbd..8d1ff55626b 100644 --- a/AABB_tree/include/CGAL/internal/AABB_tree/nearest_point_segment_3.h +++ b/AABB_tree/include/CGAL/internal/AABB_tree/nearest_point_segment_3.h @@ -90,7 +90,6 @@ namespace CGAL { const K& k) { typedef typename K::Point_3 Point_3; - typedef typename K::Vector_3 Vector_3; typedef typename K::FT FT; typename K::Compute_squared_distance_3 sq_distance = diff --git a/AABB_tree/include/CGAL/internal/AABB_tree/nearest_point_triangle_3.h b/AABB_tree/include/CGAL/internal/AABB_tree/nearest_point_triangle_3.h index 4a84784e704..d0b2baf28e5 100644 --- a/AABB_tree/include/CGAL/internal/AABB_tree/nearest_point_triangle_3.h +++ b/AABB_tree/include/CGAL/internal/AABB_tree/nearest_point_triangle_3.h @@ -187,7 +187,6 @@ nearest_point_3(const typename K::Point_3& origin, const K& k) { typedef typename K::Point_3 Point_3; - typedef typename K::Vector_3 Vector_3; typedef typename K::FT FT; typename K::Compute_squared_distance_3 sq_distance = diff --git a/Algebraic_kernel_for_spheres/include/CGAL/Algebraic_kernel_for_spheres/internal_functions_on_roots_and_polynomial_1_3_and_2_3.h b/Algebraic_kernel_for_spheres/include/CGAL/Algebraic_kernel_for_spheres/internal_functions_on_roots_and_polynomial_1_3_and_2_3.h index afae9fe9b55..9c8a30aaa4a 100644 --- a/Algebraic_kernel_for_spheres/include/CGAL/Algebraic_kernel_for_spheres/internal_functions_on_roots_and_polynomial_1_3_and_2_3.h +++ b/Algebraic_kernel_for_spheres/include/CGAL/Algebraic_kernel_for_spheres/internal_functions_on_roots_and_polynomial_1_3_and_2_3.h @@ -57,7 +57,6 @@ namespace CGAL { template bool intersect(const typename AK::Polynomial_1_3 & p1, const typename AK::Polynomial_1_3 & p2) { - typedef typename AK::Polynomial_1_3 Polynomial_1_3; typedef typename AK::RT RT; CGAL_kernel_precondition(!(same_solutions(p1,p2))); @@ -76,7 +75,6 @@ namespace CGAL { line_from_2_planes(const typename AK::Polynomial_1_3 & p1, const typename AK::Polynomial_1_3 & p2) { - typedef typename AK::Polynomial_1_3 Polynomial_1_3; typedef typename AK::Polynomials_for_line_3 Polynomials_for_line_3; typedef typename AK::FT FT; CGAL_kernel_precondition(intersect(p1,p2)); @@ -112,7 +110,6 @@ namespace CGAL { inline bool intersect(const typename AK::Polynomial_for_spheres_2_3 & s1, const typename AK::Polynomial_for_spheres_2_3 & s2) { - typedef typename AK::Polynomial_1_3 Polynomial_1_3; typedef typename AK::FT FT; typedef typename AK::Root_of_2 Root_of_2; @@ -145,7 +142,6 @@ namespace CGAL { inline bool tangent(const typename AK::Polynomial_for_spheres_2_3 & s1, const typename AK::Polynomial_for_spheres_2_3 & s2) { - typedef typename AK::Polynomial_1_3 Polynomial_1_3; typedef typename AK::RT RT; typedef typename AK::Root_of_2 Root_of_2; @@ -335,7 +331,6 @@ namespace CGAL { OutputIterator res ) { typedef typename AK::RT RT; - typedef typename AK::Root_for_spheres_2_3 Root_for_spheres_2_3; typedef typename AK::Polynomials_for_line_3 Polynomials_for_line_3; // we put as a precondition that the polynomial for spheres represents // a sphere and not an isolated point or an empty_space @@ -519,11 +514,9 @@ template < class AK, class OutputIterator > const typename AK::Polynomials_for_line_3 & l, OutputIterator res ) { - typedef typename AK::RT RT; typedef typename AK::Root_for_spheres_2_3 Root_for_spheres_2_3; typedef typename AK::Polynomial_for_spheres_2_3 Polynomial_for_spheres_2_3; typedef typename AK::Polynomial_1_3 Polynomial_1_3; - typedef typename AK::Polynomials_for_line_3 Polynomials_for_line_3; const Polynomial_for_spheres_2_3 &s1 = e1.first; const Polynomial_1_3 &p1 = e1.second; diff --git a/Algebraic_kernel_for_spheres/include/CGAL/Algebraic_kernel_for_spheres/internal_functions_on_roots_and_polynomials_1_3.h b/Algebraic_kernel_for_spheres/include/CGAL/Algebraic_kernel_for_spheres/internal_functions_on_roots_and_polynomials_1_3.h index 24bde57e79b..40eee8b4042 100644 --- a/Algebraic_kernel_for_spheres/include/CGAL/Algebraic_kernel_for_spheres/internal_functions_on_roots_and_polynomials_1_3.h +++ b/Algebraic_kernel_for_spheres/include/CGAL/Algebraic_kernel_for_spheres/internal_functions_on_roots_and_polynomials_1_3.h @@ -39,7 +39,6 @@ namespace CGAL { const typename AK::Polynomial_1_3 & e3, OutputIterator res ) { - typedef typename AK::RT RT; typedef typename AK::FT FT; typedef typename AK::Root_for_spheres_2_3 Root_for_spheres_2_3; CGAL_kernel_precondition(!(same_solutions(e1,e2) || same_solutions(e1,e3) || diff --git a/Circular_kernel_3/include/CGAL/Circular_arc_point_3.h b/Circular_kernel_3/include/CGAL/Circular_arc_point_3.h index 2fb83aea446..9fb9bd6dd37 100644 --- a/Circular_kernel_3/include/CGAL/Circular_arc_point_3.h +++ b/Circular_kernel_3/include/CGAL/Circular_arc_point_3.h @@ -225,7 +225,6 @@ public: std::istream & operator>>(std::istream & is, Circular_arc_point_3 &p) { - typedef typename SK::Root_of_2 Root_of_2; typedef typename SK::Root_for_spheres_2_3 Root_for_spheres_2_3; Root_for_spheres_2_3 r; diff --git a/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_function_has_on_spherical_kernel.h b/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_function_has_on_spherical_kernel.h index 8e412a6ab5e..002f00687be 100644 --- a/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_function_has_on_spherical_kernel.h +++ b/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_function_has_on_spherical_kernel.h @@ -58,7 +58,6 @@ namespace CGAL { has_on(const typename SK::Line_3 &a, const typename SK::Circular_arc_point_3 &p) { - typedef typename SK::Algebraic_kernel Algebraic_kernel; typedef typename SK::Polynomials_for_line_3 Equation; Equation equation = get_equation(a); return p.rep().coordinates().is_on_line(equation); diff --git a/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_circular_arc_3.h b/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_circular_arc_3.h index e62036e479b..03688fc38e7 100644 --- a/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_circular_arc_3.h +++ b/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_circular_arc_3.h @@ -185,7 +185,6 @@ namespace CGAL { const typename SK::Circular_arc_3 & ca, OutputIterator res) { - typedef typename SK::Point_3 Point_3; typedef typename SK::Circular_arc_point_3 Circular_arc_point_3; typedef std::vector solutions_container; typedef std::pair Solution; diff --git a/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_line_arc_3.h b/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_line_arc_3.h index 41548bb92de..c42bcbc4fe1 100644 --- a/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_line_arc_3.h +++ b/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_line_arc_3.h @@ -151,7 +151,6 @@ namespace CGAL { typedef typename SK::Point_3 Point_3; typedef typename SK::Circular_arc_point_3 Circular_arc_point_3; typedef typename SK::Line_3 Line_3; - typedef typename SK::Line_arc_3 Line_arc_3; Point_3 inters_p; Line_3 inters_l; diff --git a/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_sphere_3.h b/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_sphere_3.h index 16e9c77ce1d..de8e2908955 100644 --- a/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_sphere_3.h +++ b/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_sphere_3.h @@ -51,7 +51,6 @@ namespace CGAL { typename SK::Polynomial_for_spheres_2_3 get_equation( const typename SK::Sphere_3 & s ) { - typedef typename SK::RT RT; typedef typename SK::Point_3 Point_3; typedef typename SK::Algebraic_kernel Algebraic_kernel; Point_3 center = s.center(); @@ -297,7 +296,6 @@ namespace CGAL { typedef typename SK::Circle_3 Circle_3; typedef typename SK::Point_3 Point_3; typedef typename SK::Algebraic_kernel Algebraic_kernel; - typedef std::vector< Object > solutions_container; CGAL_kernel_precondition(!s1.is_degenerate()); CGAL_kernel_precondition(!s2.is_degenerate()); CGAL_kernel_precondition(!s3.is_degenerate()); @@ -445,7 +443,6 @@ namespace CGAL { typedef typename SK::Root_for_spheres_2_3 Root_for_spheres_2_3; typedef typename SK::Circular_arc_point_3 Circular_arc_point_3; typedef typename SK::Polynomials_for_circle_3 Equation_circle; - typedef typename SK::Circle_3 Circle_3; typedef typename SK::Algebraic_kernel Algebraic_kernel; if(non_oriented_equal(c1,c2)) { *res++ = make_object(c1); @@ -475,7 +472,6 @@ namespace CGAL { typedef typename SK::Circular_arc_point_3 Circular_arc_point_3; typedef typename SK::Polynomials_for_circle_3 Equation_circle; typedef typename SK::Polynomials_for_line_3 Equation_line; - typedef typename SK::Circle_3 Circle_3; typedef typename SK::Algebraic_kernel Algebraic_kernel; CGAL_kernel_precondition(!l.is_degenerate()); Equation_circle e1 = get_equation(c); diff --git a/Conic_2/include/CGAL/ConicCPA2.h b/Conic_2/include/CGAL/ConicCPA2.h index d31f38b309d..fca7633ce9c 100644 --- a/Conic_2/include/CGAL/ConicCPA2.h +++ b/Conic_2/include/CGAL/ConicCPA2.h @@ -615,7 +615,6 @@ std::ostream& operator << ( std::ostream& os, const ConicCPA2<_PT,_DA>& c) template< class _PT, class _DA> std::istream& operator >> ( std::istream& is, ConicCPA2<_PT,_DA>& c) { - typedef ConicCPA2<_PT,_DA> Conic; typedef typename _DA::FT FT; FT r, s, t, u, v, w; diff --git a/Filtered_kernel/include/CGAL/Lazy.h b/Filtered_kernel/include/CGAL/Lazy.h index c41589af468..02a83353fdc 100644 --- a/Filtered_kernel/include/CGAL/Lazy.h +++ b/Filtered_kernel/include/CGAL/Lazy.h @@ -1365,8 +1365,6 @@ struct Lazy_construction { template \ result_type \ operator()( BOOST_PP_ENUM(n, CGAL_LARGS, _) ) const { \ - BOOST_PP_REPEAT(n, CGAL_TYPEMAP_EC, L) \ - BOOST_PP_REPEAT(n, CGAL_TYPEMAP_AC, L) \ typedef Lazy< AT, ET, EFT, E2A> Handle; \ CGAL_BRANCH_PROFILER(std::string(" failures/calls to : ") + std::string(CGAL_PRETTY_FUNCTION), tmp); \ Protect_FPU_rounding P; \ diff --git a/Intersections_2/include/CGAL/Line_2_Iso_rectangle_2_intersection.h b/Intersections_2/include/CGAL/Line_2_Iso_rectangle_2_intersection.h index dd1a40dfae5..57155fffc0b 100644 --- a/Intersections_2/include/CGAL/Line_2_Iso_rectangle_2_intersection.h +++ b/Intersections_2/include/CGAL/Line_2_Iso_rectangle_2_intersection.h @@ -87,7 +87,7 @@ template typename Line_2_Iso_rectangle_2_pair::Intersection_results Line_2_Iso_rectangle_2_pair::intersection_type() const { - typedef typename K::Line_2 line_t; + //typedef typename K::Line_2 line_t; if (_known) return _result; // The non const this pointer is used to cast away const. diff --git a/Intersections_2/include/CGAL/Point_2_Triangle_2_intersection.h b/Intersections_2/include/CGAL/Point_2_Triangle_2_intersection.h index 4ae6e78d511..d9c87f07702 100644 --- a/Intersections_2/include/CGAL/Point_2_Triangle_2_intersection.h +++ b/Intersections_2/include/CGAL/Point_2_Triangle_2_intersection.h @@ -81,7 +81,6 @@ template typename Point_2_Triangle_2_pair::Intersection_results Point_2_Triangle_2_pair::intersection_type() const { - typedef typename K::Line_2 line_t; if (_known) return _result; // The non const this pointer is used to cast away const. @@ -93,6 +92,7 @@ Point_2_Triangle_2_pair::intersection_type() const } return _result; /* + typedef typename K::Line_2 line_t; line_t l(_trian->vertex(0), _trian->vertex(1)); if (l.has_on_positive_side(_trian->vertex(2))) { for (int i=0; i<3; i++) { diff --git a/Intersections_2/include/CGAL/Ray_2_Ray_2_intersection.h b/Intersections_2/include/CGAL/Ray_2_Ray_2_intersection.h index 506b4eed36c..82ff7f6888e 100644 --- a/Intersections_2/include/CGAL/Ray_2_Ray_2_intersection.h +++ b/Intersections_2/include/CGAL/Ray_2_Ray_2_intersection.h @@ -99,7 +99,7 @@ Ray_2_Ray_2_pair::intersection_type() const return _result; case Line_2_Line_2_pair::LINE: { - typedef typename K::RT RT; + //typedef typename K::RT RT; const typename K::Vector_2 &dir1 = _ray1->direction().to_vector(); const typename K::Vector_2 &dir2 = _ray2->direction().to_vector(); if (CGAL_NTS abs(dir1.x()) > CGAL_NTS abs(dir1.y())) { diff --git a/Intersections_2/include/CGAL/Ray_2_Segment_2_intersection.h b/Intersections_2/include/CGAL/Ray_2_Segment_2_intersection.h index 373284bba32..eb80caa3490 100644 --- a/Intersections_2/include/CGAL/Ray_2_Segment_2_intersection.h +++ b/Intersections_2/include/CGAL/Ray_2_Segment_2_intersection.h @@ -101,7 +101,7 @@ Ray_2_Segment_2_pair::intersection_type() const ? POINT : NO_INTERSECTION; return _result; case Line_2_Line_2_pair::LINE: { - typedef typename K::RT RT; + //typedef typename K::RT RT; const typename K::Point_2 &start1 = _seg->source(); const typename K::Point_2 &end1 = _seg->target(); const typename K::Point_2 &start2 = _ray->source(); diff --git a/Intersections_2/include/CGAL/Segment_2_Segment_2_intersection.h b/Intersections_2/include/CGAL/Segment_2_Segment_2_intersection.h index 7acebb5a6b0..215ad965a1e 100644 --- a/Intersections_2/include/CGAL/Segment_2_Segment_2_intersection.h +++ b/Intersections_2/include/CGAL/Segment_2_Segment_2_intersection.h @@ -322,7 +322,7 @@ Segment_2_Segment_2_pair::intersection_type() const break; case Line_2_Line_2_pair::LINE: { - typedef typename K::RT RT; + //typedef typename K::RT RT; typename K::Point_2 const &start1 = _seg1->source(); typename K::Point_2 const &end1 = _seg1->target(); typename K::Point_2 const &start2 = _seg2->source(); diff --git a/Intersections_3/include/CGAL/Intersections_3/intersection_3_1_impl.h b/Intersections_3/include/CGAL/Intersections_3/intersection_3_1_impl.h index 33231b775fa..b8a0dfc8afa 100644 --- a/Intersections_3/include/CGAL/Intersections_3/intersection_3_1_impl.h +++ b/Intersections_3/include/CGAL/Intersections_3/intersection_3_1_impl.h @@ -202,7 +202,6 @@ intersection(const typename K::Line_3 &l1, const K&) { typedef typename K::FT FT; - typedef typename K::Line_3 Line_3; typedef typename K::Point_3 Point_3; typedef typename K::Vector_3 Vector_3; @@ -237,8 +236,6 @@ do_intersect(const typename K::Line_3 &l1, const typename K::Line_3 &l2, const K&) { - typedef typename K::FT FT; - typedef typename K::Line_3 Line_3; typedef typename K::Point_3 Point_3; typedef typename K::Vector_3 Vector_3; @@ -630,9 +627,7 @@ intersection(const typename K::Plane_3 &p, const typename K::Sphere_3 &s, const K&) { - typedef typename K::Sphere_3 Sphere_3; typedef typename K::Circle_3 Circle_3; - typedef typename K::Plane_3 Plane_3; typedef typename K::Point_3 Point_3; typedef typename K::FT FT; const FT d2 = CGAL::square(p.a()*s.center().x() + @@ -656,10 +651,6 @@ do_intersect(const typename K::Plane_3 &p, const typename K::Sphere_3 &s, const K&) { - typedef typename K::Sphere_3 Sphere_3; - typedef typename K::Circle_3 Circle_3; - typedef typename K::Plane_3 Plane_3; - typedef typename K::Point_3 Point_3; typedef typename K::FT FT; const FT d2 = CGAL::square(p.a()*s.center().x() + p.b()*s.center().y() + @@ -697,7 +688,6 @@ intersection(const typename K::Sphere_3 &s1, const K& k) { typedef typename K::Plane_3 Plane_3; - typedef typename K::Sphere_3 Sphere_3; if(s1.center() == s2.center()) { if(s1.squared_radius() == s2.squared_radius()) { if(is_zero(s1.squared_radius())) return make_object(s1.center()); @@ -716,7 +706,6 @@ do_intersect(const typename K::Sphere_3 &s1, const K& k) { typedef typename K::Plane_3 Plane_3; - typedef typename K::Sphere_3 Sphere_3; if(s1.center() == s2.center()) { return s1.squared_radius() == s2.squared_radius(); } @@ -1095,7 +1084,6 @@ intersection(const typename K::Line_3 &line, typedef typename K::Point_3 Point_3; typedef typename K::Vector_3 Vector_3; typedef typename K::Segment_3 Segment_3; - typedef typename K::RT RT; typedef typename K::FT FT; bool all_values = true; FT _min = 0, _max = 0; // initialization to stop compiler warning @@ -1169,7 +1157,6 @@ intersection(const typename K::Ray_3 &ray, typedef typename K::Point_3 Point_3; typedef typename K::Vector_3 Vector_3; typedef typename K::Segment_3 Segment_3; - typedef typename K::RT RT; typedef typename K::FT FT; bool all_values = true; FT _min = 0, _max = 0; // initialization to prevent compiler warning @@ -1241,7 +1228,6 @@ intersection(const typename K::Segment_3 &seg, typedef typename K::Point_3 Point_3; typedef typename K::Vector_3 Vector_3; typedef typename K::Segment_3 Segment_3; - typedef typename K::RT RT; typedef typename K::FT FT; FT _min = 0, _max; @@ -1320,7 +1306,6 @@ intersection( min_points[1] = (icub2.min)(); max_points[0] = (icub1.max)(); max_points[1] = (icub2.max)(); - typedef typename K::FT FT; const int DIM = 3; int min_idx[DIM]; int max_idx[DIM]; diff --git a/Intersections_3/include/CGAL/Triangle_3_Tetrahedron_3_do_intersect.h b/Intersections_3/include/CGAL/Triangle_3_Tetrahedron_3_do_intersect.h index bbec80b86e5..727870eba8e 100644 --- a/Intersections_3/include/CGAL/Triangle_3_Tetrahedron_3_do_intersect.h +++ b/Intersections_3/include/CGAL/Triangle_3_Tetrahedron_3_do_intersect.h @@ -39,7 +39,6 @@ do_intersect(const typename K::Triangle_3 &tr, const K & k) { typedef typename K::Triangle_3 Triangle; - typedef typename K::Point_3 Point; CGAL_kernel_precondition( ! k.is_degenerate_3_object() (tr) ); CGAL_kernel_precondition( ! k.is_degenerate_3_object() (tet) ); diff --git a/Intersections_3/include/CGAL/internal/Intersections_3/Triangle_3_Ray_3_intersection.h b/Intersections_3/include/CGAL/internal/Intersections_3/Triangle_3_Ray_3_intersection.h index 72b42435a52..ce43b8aa0a0 100644 --- a/Intersections_3/include/CGAL/internal/Intersections_3/Triangle_3_Ray_3_intersection.h +++ b/Intersections_3/include/CGAL/internal/Intersections_3/Triangle_3_Ray_3_intersection.h @@ -43,7 +43,6 @@ t3r3_intersection_coplanar_aux(const typename K::Point_3& p, // preconditions: // + p,v,a,b are coplanar - typedef typename K::Point_3 Point_3; typedef typename K::Vector_3 Vector_3; typedef typename K::FT FT; diff --git a/Intersections_3/include/CGAL/internal/Intersections_3/Triangle_3_Segment_3_intersection.h b/Intersections_3/include/CGAL/internal/Intersections_3/Triangle_3_Segment_3_intersection.h index 841499dd6c1..3ea7d4d4232 100644 --- a/Intersections_3/include/CGAL/internal/Intersections_3/Triangle_3_Segment_3_intersection.h +++ b/Intersections_3/include/CGAL/internal/Intersections_3/Triangle_3_Segment_3_intersection.h @@ -42,7 +42,6 @@ t3s3_intersection_coplanar_aux(const typename K::Point_3& p, // preconditions: // + p,q,a,b are coplanar - typedef typename K::Point_3 Point_3; typedef typename K::Vector_3 Vector_3; typedef typename K::FT FT; diff --git a/Polyhedron_IO/include/CGAL/IO/generic_print_polyhedron.h b/Polyhedron_IO/include/CGAL/IO/generic_print_polyhedron.h index a36bb754ff2..215bf50fdd7 100644 --- a/Polyhedron_IO/include/CGAL/IO/generic_print_polyhedron.h +++ b/Polyhedron_IO/include/CGAL/IO/generic_print_polyhedron.h @@ -33,7 +33,6 @@ generic_print_polyhedron( std::ostream& out, const Polyhedron& P, Writer& writer) { // writes P to `out' in the format provided by `writer'. - typedef typename Polyhedron::Vertex Vertex; typedef typename Polyhedron::Vertex_const_iterator VCI; typedef typename Polyhedron::Facet_const_iterator FCI; typedef typename Polyhedron::Halfedge_around_facet_const_circulator HFCC; diff --git a/Triangulation_2/include/CGAL/Delaunay_triangulation_2.h b/Triangulation_2/include/CGAL/Delaunay_triangulation_2.h index 0eb89bc8df3..d6eb5a23aab 100644 --- a/Triangulation_2/include/CGAL/Delaunay_triangulation_2.h +++ b/Triangulation_2/include/CGAL/Delaunay_triangulation_2.h @@ -2249,7 +2249,6 @@ move_if_no_collision_and_give_new_faces(Vertex_handle v, CGAL_triangulation_precondition(!this->is_infinite(v)); if(v->point() == p) return v; - typedef std::list Faces_list; const int dim = this->dimension(); if(dim == 2) { diff --git a/Triangulation_2/include/CGAL/Regular_triangulation_euclidean_traits_2.h b/Triangulation_2/include/CGAL/Regular_triangulation_euclidean_traits_2.h index be6a3d07a31..500fbf362ba 100644 --- a/Triangulation_2/include/CGAL/Regular_triangulation_euclidean_traits_2.h +++ b/Triangulation_2/include/CGAL/Regular_triangulation_euclidean_traits_2.h @@ -180,8 +180,8 @@ compare_power_distance(const Weighted_point& p, const Bare_point& r, Homogeneous_tag) { typedef typename Kernel_traits::Kernel::RT RT; - return compare_power_distanceH2(p.hx(), p.hy(), p.hw(), FT(p.weight()), - q.hx(), q.hy(), q.hw(), FT(q.weight()), + return compare_power_distanceH2(p.hx(), p.hy(), p.hw(), RT(p.weight()), + q.hx(), q.hy(), q.hw(), RT(q.weight()), r.hx(), r.hy(), r.hw()); } @@ -306,7 +306,6 @@ typename Kernel_traits::Kernel::Oriented_side power_test_2(const Weighted_point &p, const Weighted_point &t) { - typedef typename Kernel_traits::Kernel::RT RT; Comparison_result r = compare(p.weight(), t.weight()); if(r == LARGER) return ON_NEGATIVE_SIDE; else if (r == SMALLER) return ON_POSITIVE_SIDE; diff --git a/Triangulation_2/include/CGAL/Triangulation_2.h b/Triangulation_2/include/CGAL/Triangulation_2.h index 4dcc820ec16..8bcebd366d4 100644 --- a/Triangulation_2/include/CGAL/Triangulation_2.h +++ b/Triangulation_2/include/CGAL/Triangulation_2.h @@ -594,7 +594,6 @@ std::ptrdiff_t insert(InputIterator first, InputIterator last) bool well_oriented(Vertex_handle v) const { - typedef typename Geom_traits::Orientation_2 Orientation_2; Face_circulator fc = incident_faces(v), done(fc); do { if(!is_infinite(fc)) { @@ -634,8 +633,6 @@ public: EdgeIt edge_end, FaceIt face_begin, FaceIt face_end) { - typedef typename Triangulation_data_structure::Edge Tds_Edge; - typedef typename Triangulation_data_structure::Face Tds_Face; Vertex_handle v = _tds.star_hole( edge_begin, edge_end, face_begin, face_end); v->set_point(p); @@ -2149,7 +2146,6 @@ move_if_no_collision_and_give_new_faces(Vertex_handle v, { CGAL_triangulation_precondition(!is_infinite(v)); if(v->point() == p) return v; - typedef std::list Faces_list; const int dim = this->dimension(); Locate_type lt;