Remove dead code branches (#6875)
This commit is contained in:
parent
3254686933
commit
dff76d31d5
@ -14,18 +14,6 @@
|
||||
#include <memory>
|
||||
#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
|
||||
{
|
||||
|
||||
|
@ -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 "engine/polyline_compressor.hpp"
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user