From dff76d31d5f8f5d52947e60ad13a9c79856bd937 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Fri, 10 May 2024 20:21:41 +0200 Subject: [PATCH] Remove dead code branches (#6875) --- include/server/connection.hpp | 12 ------------ unit_tests/engine/geometry_string.cpp | 2 +- unit_tests/storage/tar.cpp | 3 --- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/include/server/connection.hpp b/include/server/connection.hpp index 3f98d4ed1..ad8e49d98 100644 --- a/include/server/connection.hpp +++ b/include/server/connection.hpp @@ -14,18 +14,6 @@ #include #include -// workaround for incomplete std::shared_ptr compatibility in old boost versions -#if BOOST_VERSION < 105300 || defined BOOST_NO_CXX11_SMART_PTR - -namespace boost -{ -template const T *get_pointer(std::shared_ptr const &p) { return p.get(); } - -template T *get_pointer(std::shared_ptr &p) { return p.get(); } -} // namespace boost - -#endif - namespace osrm::server { diff --git a/unit_tests/engine/geometry_string.cpp b/unit_tests/engine/geometry_string.cpp index c08972d06..62e6990d2 100644 --- a/unit_tests/engine/geometry_string.cpp +++ b/unit_tests/engine/geometry_string.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include "engine/polyline_compressor.hpp" diff --git a/unit_tests/storage/tar.cpp b/unit_tests/storage/tar.cpp index 0e30fc99d..b9e66116b 100644 --- a/unit_tests/storage/tar.cpp +++ b/unit_tests/storage/tar.cpp @@ -189,8 +189,6 @@ BOOST_AUTO_TEST_CASE(continue_write_tar_file) CHECK_EQUAL_COLLECTIONS(result_64bit_vector, vector_64bit); } -// Boost test only supports disabling was only introduced in 1.59 -#if BOOST_VERSION >= 105900 // This test case is disabled by default because it needs 10 GiB of storage // Enable with ./storage-tests --run_test=tar/write_huge_tar_file BOOST_AUTO_TEST_CASE(write_huge_tar_file, *boost::unit_test::disabled()) @@ -223,6 +221,5 @@ BOOST_AUTO_TEST_CASE(write_huge_tar_file, *boost::unit_test::disabled()) BOOST_CHECK_EQUAL(checksum, reference_checksum); } -#endif BOOST_AUTO_TEST_SUITE_END()