From 498613f3626ec33e1f17d0f7b639fda2b1948096 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 21 May 2024 18:03:50 +0100 Subject: [PATCH] Remove #includes --- .../Approximate_min_ellipsoid_d_debug.h | 1 - .../include/CGAL/Min_sphere_of_spheres_d.h | 4 +--- .../include/CGAL/Box_intersection_d/segment_tree.h | 1 - .../demo/Apollonius_graph_2/Apollonius_graph_2.cpp | 1 - Hash_map/benchmark/Hash_map/hm.cpp | 1 - Hash_map/benchmark/Hash_map/polyhedron.cpp | 3 --- Hash_map/benchmark/Hash_map/surface_mesh.cpp | 3 --- Hash_map/benchmark/Hash_map/triangulation.cpp | 3 --- Interval_skip_list/include/CGAL/Interval_skip_list.h | 3 --- Nef_2/include/CGAL/Nef_polyhedron_2.h | 1 - Nef_S2/include/CGAL/Nef_polyhedron_S2.h | 1 - .../include/CGAL/Periodic_2_triangulation_2.h | 1 - .../include/CGAL/make_periodic_3_mesh_3.h | 3 --- .../include/CGAL/Periodic_3_triangulation_3.h | 1 - .../bench_p4ht2_hyperbolic_vs_euclidean.cpp | 2 -- .../bench_p4ht2_insertion.cpp | 2 -- .../bench_p4ht2_remove_dummy_points.cpp | 3 --- .../test_p4ht2_intersections.cpp | 2 -- .../test_p4ht2_locate.cpp | 2 -- .../test_p4ht2_removal.cpp | 2 -- .../test_p4ht2_removal_iterator.cpp | 2 -- .../include/CGAL/Reconstruction_triangulation_3.h | 1 - Random_numbers/include/CGAL/Random.h | 2 +- STL_Extension/include/CGAL/algorithm.h | 2 -- Skin_surface_3/include/CGAL/Skin_surface_base_3.h | 1 - Spatial_sorting/include/CGAL/hilbert_sort.h | 1 - Spatial_sorting/include/CGAL/spatial_sort.h | 5 ++--- Stream_lines_2/include/CGAL/Stream_lines_2.h | 11 ++++------- Triangulation_2/include/CGAL/Triangulation_2.h | 1 - Triangulation_3/include/CGAL/Triangulation_3.h | 1 - .../test/Triangulation_3/test_regular_remove_3.cpp | 4 ++-- .../include/CGAL/Triangulation_on_sphere_2.h | 1 - 32 files changed, 10 insertions(+), 62 deletions(-) diff --git a/Bounding_volumes/include/CGAL/Approximate_min_ellipsoid_d/Approximate_min_ellipsoid_d_debug.h b/Bounding_volumes/include/CGAL/Approximate_min_ellipsoid_d/Approximate_min_ellipsoid_d_debug.h index 28124861ec97..8f5b5af9d61a 100644 --- a/Bounding_volumes/include/CGAL/Approximate_min_ellipsoid_d/Approximate_min_ellipsoid_d_debug.h +++ b/Bounding_volumes/include/CGAL/Approximate_min_ellipsoid_d/Approximate_min_ellipsoid_d_debug.h @@ -22,7 +22,6 @@ #include #include #include -#include namespace CGAL { diff --git a/Bounding_volumes/include/CGAL/Min_sphere_of_spheres_d.h b/Bounding_volumes/include/CGAL/Min_sphere_of_spheres_d.h index 34e70c02734c..784863bf5bd1 100644 --- a/Bounding_volumes/include/CGAL/Min_sphere_of_spheres_d.h +++ b/Bounding_volumes/include/CGAL/Min_sphere_of_spheres_d.h @@ -16,14 +16,12 @@ #include - -#include -#include #include #include #include #include +#include #include #include diff --git a/Box_intersection_d/include/CGAL/Box_intersection_d/segment_tree.h b/Box_intersection_d/include/CGAL/Box_intersection_d/segment_tree.h index 2d810c0e2d70..7ae8b862938c 100644 --- a/Box_intersection_d/include/CGAL/Box_intersection_d/segment_tree.h +++ b/Box_intersection_d/include/CGAL/Box_intersection_d/segment_tree.h @@ -19,7 +19,6 @@ #include #include -#include #include #include diff --git a/GraphicsView/demo/Apollonius_graph_2/Apollonius_graph_2.cpp b/GraphicsView/demo/Apollonius_graph_2/Apollonius_graph_2.cpp index 2782ecbf4a8a..1ac734360d6b 100644 --- a/GraphicsView/demo/Apollonius_graph_2/Apollonius_graph_2.cpp +++ b/GraphicsView/demo/Apollonius_graph_2/Apollonius_graph_2.cpp @@ -11,7 +11,6 @@ #include #include -#include #include // Qt headers diff --git a/Hash_map/benchmark/Hash_map/hm.cpp b/Hash_map/benchmark/Hash_map/hm.cpp index c34b8fb6881e..117589c10fe4 100644 --- a/Hash_map/benchmark/Hash_map/hm.cpp +++ b/Hash_map/benchmark/Hash_map/hm.cpp @@ -20,7 +20,6 @@ #include #include -#include typedef CGAL::Simple_cartesian Kernel; typedef Kernel::Point_3 Point_3; diff --git a/Hash_map/benchmark/Hash_map/polyhedron.cpp b/Hash_map/benchmark/Hash_map/polyhedron.cpp index 1d45c71149cb..baf508bd778f 100644 --- a/Hash_map/benchmark/Hash_map/polyhedron.cpp +++ b/Hash_map/benchmark/Hash_map/polyhedron.cpp @@ -13,9 +13,6 @@ #include #include -#include -#include - typedef CGAL::Simple_cartesian Kernel; struct Point_3 : Kernel::Point_3 { using Kernel::Point_3::operator=; diff --git a/Hash_map/benchmark/Hash_map/surface_mesh.cpp b/Hash_map/benchmark/Hash_map/surface_mesh.cpp index 01f97baaec47..3f0ce783625d 100644 --- a/Hash_map/benchmark/Hash_map/surface_mesh.cpp +++ b/Hash_map/benchmark/Hash_map/surface_mesh.cpp @@ -16,9 +16,6 @@ #include #include -#include -#include - typedef CGAL::Simple_cartesian Kernel; typedef Kernel::Point_3 Point_3; typedef Kernel::Vector_3 Vector_3; diff --git a/Hash_map/benchmark/Hash_map/triangulation.cpp b/Hash_map/benchmark/Hash_map/triangulation.cpp index dde17b5aac38..7ac5537f3f2c 100644 --- a/Hash_map/benchmark/Hash_map/triangulation.cpp +++ b/Hash_map/benchmark/Hash_map/triangulation.cpp @@ -13,9 +13,6 @@ #include #include -#include -#include - typedef CGAL::Simple_cartesian Kernel; typedef Kernel::Point_2 Point_2; typedef Kernel::Vector_2 Vector_2; diff --git a/Interval_skip_list/include/CGAL/Interval_skip_list.h b/Interval_skip_list/include/CGAL/Interval_skip_list.h index 38e6e82d56ec..0f0917edac6f 100644 --- a/Interval_skip_list/include/CGAL/Interval_skip_list.h +++ b/Interval_skip_list/include/CGAL/Interval_skip_list.h @@ -16,14 +16,11 @@ #include - #include #include #include #include -#include - //#define CGAL_ISL_USE_CCC #define CGAL_ISL_USE_LIST diff --git a/Nef_2/include/CGAL/Nef_polyhedron_2.h b/Nef_2/include/CGAL/Nef_polyhedron_2.h index 464610510831..f22f491fa356 100644 --- a/Nef_2/include/CGAL/Nef_polyhedron_2.h +++ b/Nef_2/include/CGAL/Nef_polyhedron_2.h @@ -34,7 +34,6 @@ #include #include -#include #include #undef CGAL_NEF_DEBUG diff --git a/Nef_S2/include/CGAL/Nef_polyhedron_S2.h b/Nef_S2/include/CGAL/Nef_polyhedron_S2.h index 2fb776f8b31b..3fa27f7b24d5 100644 --- a/Nef_S2/include/CGAL/Nef_polyhedron_S2.h +++ b/Nef_S2/include/CGAL/Nef_polyhedron_S2.h @@ -32,7 +32,6 @@ #include #include -#include #include #undef CGAL_NEF_DEBUG diff --git a/Periodic_2_triangulation_2/include/CGAL/Periodic_2_triangulation_2.h b/Periodic_2_triangulation_2/include/CGAL/Periodic_2_triangulation_2.h index 73be125c7319..ba50ce7b0d68 100644 --- a/Periodic_2_triangulation_2/include/CGAL/Periodic_2_triangulation_2.h +++ b/Periodic_2_triangulation_2/include/CGAL/Periodic_2_triangulation_2.h @@ -38,7 +38,6 @@ #include #include -#include #include #include diff --git a/Periodic_3_mesh_3/include/CGAL/make_periodic_3_mesh_3.h b/Periodic_3_mesh_3/include/CGAL/make_periodic_3_mesh_3.h index 5bed7b2a3c15..1c9c4d2a412a 100644 --- a/Periodic_3_mesh_3/include/CGAL/make_periodic_3_mesh_3.h +++ b/Periodic_3_mesh_3/include/CGAL/make_periodic_3_mesh_3.h @@ -30,9 +30,6 @@ #include #include -#include -#include - namespace CGAL { namespace Periodic_3_mesh_3 { namespace internal { diff --git a/Periodic_3_triangulation_3/include/CGAL/Periodic_3_triangulation_3.h b/Periodic_3_triangulation_3/include/CGAL/Periodic_3_triangulation_3.h index bb1e14197db5..05e1f592de4a 100644 --- a/Periodic_3_triangulation_3/include/CGAL/Periodic_3_triangulation_3.h +++ b/Periodic_3_triangulation_3/include/CGAL/Periodic_3_triangulation_3.h @@ -46,7 +46,6 @@ #include #endif // no CGAL_NO_STRUCTURAL_FILTERING -#include #include #include #include diff --git a/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_hyperbolic_vs_euclidean.cpp b/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_hyperbolic_vs_euclidean.cpp index 61cf9e8b1171..adbbe12e8c69 100644 --- a/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_hyperbolic_vs_euclidean.cpp +++ b/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_hyperbolic_vs_euclidean.cpp @@ -11,8 +11,6 @@ #include #include -#include -#include typedef CGAL::Periodic_4_hyperbolic_Delaunay_triangulation_traits_2<> Traits; typedef Traits::FT NT; diff --git a/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_insertion.cpp b/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_insertion.cpp index cad04f31c9e5..d5f278e01e04 100644 --- a/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_insertion.cpp +++ b/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_insertion.cpp @@ -13,8 +13,6 @@ #include #include -#include -#include typedef CGAL::Periodic_4_hyperbolic_Delaunay_triangulation_traits_2<> Traits; typedef Traits::FT NT; diff --git a/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_remove_dummy_points.cpp b/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_remove_dummy_points.cpp index e3e309e5d94e..e042c76c7232 100644 --- a/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_remove_dummy_points.cpp +++ b/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/bench_p4ht2_remove_dummy_points.cpp @@ -6,9 +6,6 @@ #include #include -#include -#include - #include typedef CGAL::Periodic_4_hyperbolic_Delaunay_triangulation_traits_2<> Traits; diff --git a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_intersections.cpp b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_intersections.cpp index 65d03d7bd99e..ebaa1403780d 100644 --- a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_intersections.cpp +++ b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_intersections.cpp @@ -2,8 +2,6 @@ #include #include -#include -#include #include diff --git a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_locate.cpp b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_locate.cpp index 516fa23ecd16..1ff97afe045a 100644 --- a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_locate.cpp +++ b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_locate.cpp @@ -7,8 +7,6 @@ #include #include -#include -#include #include diff --git a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_removal.cpp b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_removal.cpp index 189b7d6ffcaa..17d052921172 100644 --- a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_removal.cpp +++ b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_removal.cpp @@ -4,8 +4,6 @@ #include #include #include -#include -#include #include diff --git a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_removal_iterator.cpp b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_removal_iterator.cpp index 50474106d91b..1afa7b93134a 100644 --- a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_removal_iterator.cpp +++ b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_removal_iterator.cpp @@ -5,8 +5,6 @@ #include #include -#include -#include #include diff --git a/Poisson_surface_reconstruction_3/include/CGAL/Reconstruction_triangulation_3.h b/Poisson_surface_reconstruction_3/include/CGAL/Reconstruction_triangulation_3.h index 5632109237a8..52d93de12acc 100644 --- a/Poisson_surface_reconstruction_3/include/CGAL/Reconstruction_triangulation_3.h +++ b/Poisson_surface_reconstruction_3/include/CGAL/Reconstruction_triangulation_3.h @@ -31,7 +31,6 @@ #include #include #include -#include #include #include diff --git a/Random_numbers/include/CGAL/Random.h b/Random_numbers/include/CGAL/Random.h index 69e1e77e0b67..95747a048a05 100644 --- a/Random_numbers/include/CGAL/Random.h +++ b/Random_numbers/include/CGAL/Random.h @@ -31,7 +31,7 @@ #if defined(BOOST_MSVC) # pragma warning(pop) #endif -#include + #include #include #include diff --git a/STL_Extension/include/CGAL/algorithm.h b/STL_Extension/include/CGAL/algorithm.h index fb81bdc0809d..9de3d9bc90b4 100644 --- a/STL_Extension/include/CGAL/algorithm.h +++ b/STL_Extension/include/CGAL/algorithm.h @@ -29,8 +29,6 @@ #include #include -#include -#include namespace CGAL { diff --git a/Skin_surface_3/include/CGAL/Skin_surface_base_3.h b/Skin_surface_3/include/CGAL/Skin_surface_base_3.h index 509a6af99caa..1600b23fcff2 100644 --- a/Skin_surface_3/include/CGAL/Skin_surface_base_3.h +++ b/Skin_surface_3/include/CGAL/Skin_surface_base_3.h @@ -21,7 +21,6 @@ #include -#include #include #include #include diff --git a/Spatial_sorting/include/CGAL/hilbert_sort.h b/Spatial_sorting/include/CGAL/hilbert_sort.h index b129bdb0b01e..a3a6c81cb39f 100644 --- a/Spatial_sorting/include/CGAL/hilbert_sort.h +++ b/Spatial_sorting/include/CGAL/hilbert_sort.h @@ -23,7 +23,6 @@ #include #include -#include #include #include diff --git a/Spatial_sorting/include/CGAL/spatial_sort.h b/Spatial_sorting/include/CGAL/spatial_sort.h index 51d13ee1da16..636b72a22d37 100644 --- a/Spatial_sorting/include/CGAL/spatial_sort.h +++ b/Spatial_sorting/include/CGAL/spatial_sort.h @@ -16,12 +16,11 @@ #include #include +#include #include -#include -#include -#include +#include #include namespace CGAL { diff --git a/Stream_lines_2/include/CGAL/Stream_lines_2.h b/Stream_lines_2/include/CGAL/Stream_lines_2.h index c50385fbdb5e..dd1b8e099f29 100644 --- a/Stream_lines_2/include/CGAL/Stream_lines_2.h +++ b/Stream_lines_2/include/CGAL/Stream_lines_2.h @@ -15,25 +15,22 @@ #include - #include #include +#include +#include #include #include #include #include #include - -#include - -#include +#include #include #include // undocumented class -#include #include -#include + namespace CGAL { diff --git a/Triangulation_2/include/CGAL/Triangulation_2.h b/Triangulation_2/include/CGAL/Triangulation_2.h index ad5f2b116287..29a1b7e5fa30 100644 --- a/Triangulation_2/include/CGAL/Triangulation_2.h +++ b/Triangulation_2/include/CGAL/Triangulation_2.h @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/Triangulation_3/include/CGAL/Triangulation_3.h b/Triangulation_3/include/CGAL/Triangulation_3.h index c0696ac0c7ad..2c803b931ad7 100644 --- a/Triangulation_3/include/CGAL/Triangulation_3.h +++ b/Triangulation_3/include/CGAL/Triangulation_3.h @@ -45,7 +45,6 @@ #include #include -#include #include #include #include diff --git a/Triangulation_3/test/Triangulation_3/test_regular_remove_3.cpp b/Triangulation_3/test/Triangulation_3/test_regular_remove_3.cpp index 9252598776cc..8d52f4352ef9 100644 --- a/Triangulation_3/test/Triangulation_3/test_regular_remove_3.cpp +++ b/Triangulation_3/test/Triangulation_3/test_regular_remove_3.cpp @@ -17,8 +17,8 @@ #include //#include #include +#include -#include #include #include @@ -129,7 +129,7 @@ class point_iterator } }; -static boost::minstd_rand randgen; +static std::minstd_rand randgen; // point_iterator_x generates points randomly on a grid (thus making lots of // degenerate cases), staying in dimension x. diff --git a/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h b/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h index 576179d0411d..d6858337450c 100644 --- a/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h +++ b/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h @@ -29,7 +29,6 @@ #include #include -#include #include #include