diff options
author | Maxim Pimenov <m@maps.me> | 2018-12-24 17:47:34 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2018-12-26 08:38:51 +0300 |
commit | f66f24b477f3d1b57ff6e1461604cb462300efbd (patch) | |
tree | 02e3515a9e6c1f04b00f0f6d4b5003d0919e591b /3party | |
parent | 8206a2edc7b31feede301cd01a231e2b9611f6a1 (diff) |
[coding] Cleaned up some unused code.
Diffstat (limited to '3party')
-rw-r--r-- | 3party/osrm/osrm-backend/mapsme/converter.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/3party/osrm/osrm-backend/mapsme/converter.cpp b/3party/osrm/osrm-backend/mapsme/converter.cpp index 05c93fe8c0..aae3a05833 100644 --- a/3party/osrm/osrm-backend/mapsme/converter.cpp +++ b/3party/osrm/osrm-backend/mapsme/converter.cpp @@ -8,7 +8,6 @@ #include "../../../../base/logging.hpp" #include "../../../../base/scope_guard.hpp" -#include "../../../../coding/matrix_traversal.hpp" #include "../../../../coding/internal/file_data.hpp" #include "../../../../routing/osrm_data_facade.hpp" @@ -19,6 +18,15 @@ #include "../../../succinct/rs_bit_vector.hpp" #include "../../../succinct/mapper.hpp" +namespace +{ +template <typename T> +T TraverseMatrixInRowOrder(T n, T i, T j, bool is_back) +{ + return (i * n + j) * 2 + (is_back ? 1 : 0); +} +} // namespace + namespace mapsme { |