diff --git a/include/util/bearing.hpp b/include/util/bearing.hpp index cc2cdfda4..431878695 100644 --- a/include/util/bearing.hpp +++ b/include/util/bearing.hpp @@ -11,46 +11,6 @@ namespace osrm::util namespace bearing { -inline std::string get(const double heading) -{ - BOOST_ASSERT(heading >= 0); - BOOST_ASSERT(heading <= 360); - - if (heading <= 22.5) - { - return "N"; - } - if (heading <= 67.5) - { - return "NE"; - } - if (heading <= 112.5) - { - return "E"; - } - if (heading <= 157.5) - { - return "SE"; - } - if (heading <= 202.5) - { - return "S"; - } - if (heading <= 247.5) - { - return "SW"; - } - if (heading <= 292.5) - { - return "W"; - } - if (heading <= 337.5) - { - return "NW"; - } - return "N"; -} - // Checks whether A is between B-range and B+range, all modulo 360 // e.g. A = 5, B = 5, range = 10 == true // A = -6, B = 5, range = 10 == false