Remove unused bearing::get function (#7040)
* Remove unused bearing::get function * Remove unused bearing::get function * Remove unused bearing::get function * Remove unused bearing::get function
This commit is contained in:
parent
becfd8a56d
commit
48e8382785
7
.github/workflows/osrm-backend.yml
vendored
7
.github/workflows/osrm-backend.yml
vendored
@ -502,6 +502,13 @@ jobs:
|
|||||||
|
|
||||||
conan config init
|
conan config init
|
||||||
yq eval '.compiler.clang.version += ["18"]' -i "$HOME/.conan/settings.yml"
|
yq eval '.compiler.clang.version += ["18"]' -i "$HOME/.conan/settings.yml"
|
||||||
|
- name: Add Apple-clang 16 to list of Conan compilers # workaround for the issue that Conan 1.x doesn't know about Apple-clang 16
|
||||||
|
if: ${{ matrix.ENABLE_CONAN == 'ON' && matrix.runs-on == 'macos-14' }}
|
||||||
|
run: |
|
||||||
|
sudo wget https://github.com/mikefarah/yq/releases/download/v4.9.6/yq_darwin_arm64 -O /usr/local/bin/yq && sudo chmod +x /usr/local/bin/yq
|
||||||
|
|
||||||
|
conan config init
|
||||||
|
yq eval '.compiler.apple-clang.version += ["16.0"]' -i "$HOME/.conan/settings.yml"
|
||||||
- name: Prepare build
|
- name: Prepare build
|
||||||
run: |
|
run: |
|
||||||
mkdir ${OSRM_BUILD_DIR}
|
mkdir ${OSRM_BUILD_DIR}
|
||||||
|
@ -11,46 +11,6 @@ namespace osrm::util
|
|||||||
namespace bearing
|
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
|
// Checks whether A is between B-range and B+range, all modulo 360
|
||||||
// e.g. A = 5, B = 5, range = 10 == true
|
// e.g. A = 5, B = 5, range = 10 == true
|
||||||
// A = -6, B = 5, range = 10 == false
|
// A = -6, B = 5, range = 10 == false
|
||||||
|
@ -17,7 +17,6 @@ const static std::string IO_TOO_SMALL_FILE = "file_too_small_test_io.tmp";
|
|||||||
const static std::string IO_CORRUPT_FINGERPRINT_FILE = "corrupt_fingerprint_file_test_io.tmp";
|
const static std::string IO_CORRUPT_FINGERPRINT_FILE = "corrupt_fingerprint_file_test_io.tmp";
|
||||||
const static std::string IO_INCOMPATIBLE_FINGERPRINT_FILE =
|
const static std::string IO_INCOMPATIBLE_FINGERPRINT_FILE =
|
||||||
"incompatible_fingerprint_file_test_io.tmp";
|
"incompatible_fingerprint_file_test_io.tmp";
|
||||||
const static std::string IO_TEXT_FILE = "plain_text_file.tmp";
|
|
||||||
|
|
||||||
using namespace osrm;
|
using namespace osrm;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user