chore: Remove unused std and boost headers

This commit is contained in:
Stepan Kizim
2025-02-06 15:50:40 +01:00
parent 61464fc2bd
commit 6a154bc216
175 changed files with 3 additions and 299 deletions
-1
View File
@@ -29,7 +29,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define OSRM_UTIL_ALIAS_HPP
#include <cstddef>
#include <functional>
#include <ostream>
#include <type_traits>
-1
View File
@@ -2,7 +2,6 @@
#define OSRM_UTIL_ASSERT_HPP
#include <iostream>
#include <string>
#include "util/to_osm_link.hpp"
-2
View File
@@ -2,9 +2,7 @@
#define BEARING_HPP
#include <algorithm>
#include <boost/assert.hpp>
#include <cmath>
#include <string>
namespace osrm::util
{
-4
View File
@@ -2,11 +2,7 @@
#include <cassert>
#include <cmath>
#include <cstdint>
#include <limits>
#include <numbers>
#include <tuple>
#include <utility>
namespace mapbox
{
-2
View File
@@ -35,8 +35,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <cstddef>
#include <cstdint>
#include <iosfwd> //for std::ostream
#include <sstream>
#include <string>
#include <type_traits>
namespace osrm
-2
View File
@@ -13,8 +13,6 @@
#include <iomanip>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>
namespace osrm
-1
View File
@@ -29,7 +29,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define OSRM_EXCEPTION_HPP
#include <array>
#include <exception>
#include <string>
#include <utility>
-3
View File
@@ -1,13 +1,10 @@
#ifndef FILTERED_INTEGER_RANGE_HPP
#define FILTERED_INTEGER_RANGE_HPP
#include <boost/assert.hpp>
#include <boost/iterator/iterator_facade.hpp>
#include <type_traits>
#include <cstdint>
namespace osrm::util
{
-1
View File
@@ -3,7 +3,6 @@
#include <iterator>
#include <numeric>
#include <utility>
namespace osrm::util
{
-2
View File
@@ -5,8 +5,6 @@
#include "util/typedefs.hpp"
#include <cstddef>
#include <cstdint>
#include <functional>
#include <vector>
namespace osrm::util::guidance
-3
View File
@@ -4,9 +4,6 @@
#include <cstddef>
#include <cstdint>
#include <functional>
#include <type_traits>
#include <bitset>
namespace osrm::util::guidance
{
-4
View File
@@ -6,10 +6,6 @@
#include "util/typedefs.hpp"
#include <cstddef>
#include <cstdint>
#include <functional>
#include <unordered_map>
#include <vector>
namespace osrm::util::guidance
{
-3
View File
@@ -1,13 +1,10 @@
#ifndef INTEGER_RANGE_HPP
#define INTEGER_RANGE_HPP
#include <boost/assert.hpp>
#include <boost/iterator/iterator_facade.hpp>
#include <type_traits>
#include <cstdint>
namespace osrm::util
{
-1
View File
@@ -7,7 +7,6 @@
#include <boost/assert.hpp>
#include <algorithm>
#include <functional>
#include <set>
namespace osrm::util::json
-1
View File
@@ -7,7 +7,6 @@
#include <boost/iostreams/device/mapped_file.hpp>
#include <tuple>
#include <unordered_map>
namespace osrm::util
-1
View File
@@ -3,7 +3,6 @@
#include <bit>
#include <boost/assert.hpp>
#include <cstdint>
#include <limits>
namespace osrm::util
-3
View File
@@ -9,9 +9,6 @@
#include <tbb/parallel_sort.h>
#include <memory>
#include <utility>
namespace osrm::util
{
-1
View File
@@ -13,7 +13,6 @@
#include <array>
#include <cmath>
#include <vector>
#if defined(_MSC_VER)
// for `InterlockedCompareExchange64`
-1
View File
@@ -2,7 +2,6 @@
#define PERCENT_HPP
#include <atomic>
#include <iostream>
#include "util/isatty.hpp"
#include "util/log.hpp"
+2
View File
@@ -3,6 +3,8 @@
#include "util/integer_range.hpp"
#include <boost/assert.hpp>
#include <vector>
namespace osrm::util
-2
View File
@@ -5,9 +5,7 @@
#include <boost/heap/d_ary_heap.hpp>
#include <algorithm>
#include <cstdint>
#include <limits>
#include <map>
#include <optional>
#include <unordered_map>
#include <vector>
-1
View File
@@ -7,7 +7,6 @@
#include "util/vector_view.hpp"
#include <array>
#include <fstream>
#include <utility>
namespace osrm::util
-1
View File
@@ -6,7 +6,6 @@
#include <boost/assert.hpp>
#include <limits>
#include <utility>
#include <cstdint>
-1
View File
@@ -14,7 +14,6 @@
#include <boost/assert.hpp>
#include <algorithm>
#include <limits>
#include <type_traits>
#include <utility>
#include <vector>
-3
View File
@@ -20,7 +20,6 @@
#include "storage/shared_memory_ownership.hpp"
#include <boost/assert.hpp>
#include <boost/format.hpp>
#include <boost/iostreams/device/mapped_file.hpp>
#include <tbb/blocked_range.h>
@@ -28,10 +27,8 @@
#include <tbb/parallel_sort.h>
#include <algorithm>
#include <array>
#include <filesystem>
#include <limits>
#include <memory>
#include <queue>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#define STD_HASH_HPP
#include <cstddef>
#include <functional>
#include <tuple>
#include <utility>
#include <vector>
-2
View File
@@ -4,9 +4,7 @@
#include <array>
#include <cctype>
#include <cstddef>
#include <random>
#include <string>
#include <vector>
namespace osrm::util
{
-2
View File
@@ -14,11 +14,9 @@
#include "osrm/coordinate.hpp"
#include <boost/assert.hpp>
#include <cstdint>
#include <algorithm>
#include <climits>
#include <memory>
#include <stack>
#include <vector>
-1
View File
@@ -8,7 +8,6 @@
#include <rapidjson/document.h>
#include <chrono>
#include <filesystem>
#include <optional>
-1
View File
@@ -2,7 +2,6 @@
#define TIMING_UTIL_HPP
#include <chrono>
#include <cstdint>
namespace osrm::util
{
-2
View File
@@ -1,8 +1,6 @@
#ifndef OSRM_UTIL_VECTOR_TILE_HPP
#define OSRM_UTIL_VECTOR_TILE_HPP
#include <cstdint>
namespace osrm::util::vector_tile
{
// Vector tiles are 4096 virtual pixels on each side
-3
View File
@@ -4,10 +4,7 @@
#include "util/coordinate.hpp"
#include "util/web_mercator.hpp"
#include <boost/assert.hpp>
#include <cmath>
#include <tuple>
// Port of https://github.com/mapbox/geo-viewport
-1
View File
@@ -8,7 +8,6 @@
#include <iterator>
#include <numeric>
#include <random>
#include <vector>
#include <cstdint>