Remove dead code branches (#6875)

This commit is contained in:
Dennis Luxen 2024-05-10 20:21:41 +02:00 committed by GitHub
parent 3254686933
commit dff76d31d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 16 deletions

View File

@ -14,18 +14,6 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
// workaround for incomplete std::shared_ptr compatibility in old boost versions
#if BOOST_VERSION < 105300 || defined BOOST_NO_CXX11_SMART_PTR
namespace boost
{
template <class T> const T *get_pointer(std::shared_ptr<T> const &p) { return p.get(); }
template <class T> T *get_pointer(std::shared_ptr<T> &p) { return p.get(); }
} // namespace boost
#endif
namespace osrm::server namespace osrm::server
{ {

View File

@ -1,4 +1,4 @@
#include <boost/test/floating_point_comparison.hpp> #include <boost/test/tools/floating_point_comparison.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "engine/polyline_compressor.hpp" #include "engine/polyline_compressor.hpp"

View File

@ -189,8 +189,6 @@ BOOST_AUTO_TEST_CASE(continue_write_tar_file)
CHECK_EQUAL_COLLECTIONS(result_64bit_vector, vector_64bit); 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 // 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 // Enable with ./storage-tests --run_test=tar/write_huge_tar_file
BOOST_AUTO_TEST_CASE(write_huge_tar_file, *boost::unit_test::disabled()) 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); BOOST_CHECK_EQUAL(checksum, reference_checksum);
} }
#endif
BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END()