Skip to content

Commit

Permalink
Remove #includes
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed May 21, 2024
1 parent 8a71edb commit 498613f
Show file tree
Hide file tree
Showing 32 changed files with 10 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <fstream>
#include <sstream>
#include <random>
#include <boost/random/linear_congruential.hpp>

namespace CGAL {

Expand Down
4 changes: 1 addition & 3 deletions Bounding_volumes/include/CGAL/Min_sphere_of_spheres_d.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@

#include <CGAL/license/Bounding_volumes.h>


#include <CGAL/Min_sphere_of_spheres_d/Min_sphere_of_spheres_d_configure.h>
#include <boost/random/linear_congruential.hpp>
#include <cmath>
#include <vector>
#include <iostream>
#include <random>

#include <CGAL/Min_sphere_of_spheres_d/Min_sphere_of_spheres_d_configure.h>
#include <CGAL/Min_sphere_of_spheres_d/Min_sphere_of_spheres_d_pair.h>
#include <CGAL/Min_sphere_of_spheres_d/Min_sphere_of_spheres_d_support_set.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <CGAL/basic.h>
#include <CGAL/Box_intersection_d/box_limits.h>

#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_int.hpp>

#include <algorithm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <CGAL/point_generators_2.h>
#include <CGAL/IO/WKT.h>

#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_real.hpp>

// Qt headers
Expand Down
1 change: 0 additions & 1 deletion Hash_map/benchmark/Hash_map/hm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <unordered_map>

#include <boost/random/random_number_generator.hpp>
#include <boost/random/linear_congruential.hpp>

typedef CGAL::Simple_cartesian<double> Kernel;
typedef Kernel::Point_3 Point_3;
Expand Down
3 changes: 0 additions & 3 deletions Hash_map/benchmark/Hash_map/polyhedron.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
#include <boost/unordered_map.hpp>
#include <unordered_map>

#include <boost/random/random_number_generator.hpp>
#include <boost/random/linear_congruential.hpp>

typedef CGAL::Simple_cartesian<int> Kernel;
struct Point_3 : Kernel::Point_3 {
using Kernel::Point_3::operator=;
Expand Down
3 changes: 0 additions & 3 deletions Hash_map/benchmark/Hash_map/surface_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
#include <boost/unordered_map.hpp>
#include <unordered_map>

#include <boost/random/random_number_generator.hpp>
#include <boost/random/linear_congruential.hpp>

typedef CGAL::Simple_cartesian<double> Kernel;
typedef Kernel::Point_3 Point_3;
typedef Kernel::Vector_3 Vector_3;
Expand Down
3 changes: 0 additions & 3 deletions Hash_map/benchmark/Hash_map/triangulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
#include <boost/unordered_map.hpp>
#include <unordered_map>

#include <boost/random/random_number_generator.hpp>
#include <boost/random/linear_congruential.hpp>

typedef CGAL::Simple_cartesian<double> Kernel;
typedef Kernel::Point_2 Point_2;
typedef Kernel::Vector_2 Vector_2;
Expand Down
3 changes: 0 additions & 3 deletions Interval_skip_list/include/CGAL/Interval_skip_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@

#include <CGAL/license/Interval_skip_list.h>


#include <CGAL/basic.h>
#include <list>
#include <iostream>
#include <random>

#include <boost/random/linear_congruential.hpp>

//#define CGAL_ISL_USE_CCC
#define CGAL_ISL_USE_LIST

Expand Down
1 change: 0 additions & 1 deletion Nef_2/include/CGAL/Nef_polyhedron_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <list>
#include <random>

#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_real.hpp>

#undef CGAL_NEF_DEBUG
Expand Down
1 change: 0 additions & 1 deletion Nef_S2/include/CGAL/Nef_polyhedron_S2.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <list>
#include <random>

#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_real.hpp>

#undef CGAL_NEF_DEBUG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <CGAL/Periodic_2_triangulation_iterators_2.h>
#include <CGAL/spatial_sort.h>

#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>

#include <CGAL/utility.h>
Expand Down
3 changes: 0 additions & 3 deletions Periodic_3_mesh_3/include/CGAL/make_periodic_3_mesh_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
#include <CGAL/Mesh_3/C3T3_helpers.h>
#include <CGAL/Named_function_parameters.h>

#include <boost/random/random_number_generator.hpp>
#include <boost/random/linear_congruential.hpp>

namespace CGAL {
namespace Periodic_3_mesh_3 {
namespace internal {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <CGAL/determinant.h>
#endif // no CGAL_NO_STRUCTURAL_FILTERING

#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/unordered_map.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include <CGAL/Timer.h>

#include <boost/tuple/tuple.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>

typedef CGAL::Periodic_4_hyperbolic_Delaunay_triangulation_traits_2<> Traits;
typedef Traits::FT NT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include <CGAL/Algebraic_kernel_for_circles_2_2.h>

#include <boost/tuple/tuple.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>

typedef CGAL::Periodic_4_hyperbolic_Delaunay_triangulation_traits_2<> Traits;
typedef Traits::FT NT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include <CGAL/determinant.h>

#include <boost/tuple/tuple.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>

#include <iostream>

typedef CGAL::Periodic_4_hyperbolic_Delaunay_triangulation_traits_2<> Traits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#include <CGAL/Hyperbolic_octagon_translation.h>

#include <boost/tuple/tuple.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>

#include <iostream>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include <CGAL/Circular_kernel_2.h>

#include <boost/tuple/tuple.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>

#include <iostream>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include <CGAL/Hyperbolic_octagon_translation.h>
#include <CGAL/Cartesian.h>
#include <boost/tuple/tuple.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>

#include <iostream>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include <CGAL/Hyperbolic_octagon_translation.h>

#include <boost/tuple/tuple.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>

#include <iostream>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <CGAL/algorithm.h>
#include <CGAL/bounding_box.h>
#include <boost/random/random_number_generator.hpp>
#include <boost/random/linear_congruential.hpp>

#include <vector>
#include <iterator>
Expand Down
2 changes: 1 addition & 1 deletion Random_numbers/include/CGAL/Random.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#if defined(BOOST_MSVC)
# pragma warning(pop)
#endif
#include <boost/random/linear_congruential.hpp>

#include <boost/random/uniform_int.hpp>
#include <boost/random/uniform_real.hpp>
#include <boost/random/uniform_01.hpp>
Expand Down
2 changes: 0 additions & 2 deletions STL_Extension/include/CGAL/algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
#include <random>

#include <boost/random/random_number_generator.hpp>
#include <boost/random.hpp>
#include <boost/random/linear_congruential.hpp>

namespace CGAL {

Expand Down
1 change: 0 additions & 1 deletion Skin_surface_3/include/CGAL/Skin_surface_base_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include <CGAL/Regular_triangulation_3.h>

#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>
#include <memory>
#include <random>
Expand Down
1 change: 0 additions & 1 deletion Spatial_sorting/include/CGAL/hilbert_sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <CGAL/algorithm.h>

#include <boost/random/random_number_generator.hpp>
#include <boost/random/linear_congruential.hpp>

#include <algorithm>
#include <random>
Expand Down
5 changes: 2 additions & 3 deletions Spatial_sorting/include/CGAL/spatial_sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@

#include <CGAL/hilbert_sort.h>
#include <CGAL/Multiscale_sort.h>
#include <CGAL/algorithm.h>

#include <boost/random/random_number_generator.hpp>
#include <CGAL/algorithm.h>
#include <random>
#include <boost/random/linear_congruential.hpp>

#include <random>
#include <algorithm>

namespace CGAL {
Expand Down
11 changes: 4 additions & 7 deletions Stream_lines_2/include/CGAL/Stream_lines_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,22 @@

#include <CGAL/license/Stream_lines_2.h>


#include <CGAL/basic.h>
#include <CGAL/Delaunay_triangulation_2.h>
#include <CGAL/squared_distance_2.h>
#include <CGAL/assertions.h>

#include <queue>
#include <cmath>
#include <fstream>
#include <iostream>
#include <random>

#include <CGAL/squared_distance_2.h>

#include <CGAL/assertions.h>
#include <memory>

#include <boost/tuple/tuple.hpp>
#include <boost/random/uniform_real.hpp> // undocumented class
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>
#include <memory>


namespace CGAL {

Expand Down
1 change: 0 additions & 1 deletion Triangulation_2/include/CGAL/Triangulation_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include <CGAL/double.h>

#include <boost/utility/result_of.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>
#include <CGAL/boost/iterator/transform_iterator.hpp>
#include <boost/iterator/zip_iterator.hpp>
Expand Down
1 change: 0 additions & 1 deletion Triangulation_3/include/CGAL/Triangulation_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include <CGAL/Bbox_3.h>
#include <CGAL/Spatial_lock_grid_3.h>

#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>
#include <boost/property_map/function_property_map.hpp>
#include <boost/unordered_map.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include <cassert>
//#include <cstdlib>
#include <set>
#include <random>

#include <boost/random/linear_congruential.hpp>
#include <boost/cstdint.hpp>

#include <CGAL/_test_types.h>
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <CGAL/function_objects.h>
#include <CGAL/boost/iterator/transform_iterator.hpp>

#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_smallint.hpp>

#include <algorithm>
Expand Down

0 comments on commit 498613f

Please sign in to comment.