diff options
author | MWM Planet Generator cdn3 <osm@cdn3.mapswithme.com> | 2014-12-29 17:50:55 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:35:40 +0300 |
commit | 0c172aa453e0c66da7bb20166e5903d8d925f8a8 (patch) | |
tree | 392803f087d04bd42ec1c526ca8d564f6832bedd /3party/osrm | |
parent | 22c9b628a7dcfa7151f994f583e18923f6f5e13f (diff) |
[linux] Fixed compilation.
Diffstat (limited to '3party/osrm')
-rw-r--r-- | 3party/osrm/osrm-backend/DataStructures/Coordinate.cpp | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/3party/osrm/osrm-backend/DataStructures/Coordinate.cpp b/3party/osrm/osrm-backend/DataStructures/Coordinate.cpp index 3bd27df109..fee8c9648f 100644 --- a/3party/osrm/osrm-backend/DataStructures/Coordinate.cpp +++ b/3party/osrm/osrm-backend/DataStructures/Coordinate.cpp @@ -26,20 +26,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <osrm/Coordinate.h> + #include "../Util/MercatorUtil.h" -#ifndef NDEBUG -#include "../Util/simple_logger.hpp" -#endif #include "../Util/StringUtil.h" #include <boost/assert.hpp> -#ifndef NDEBUG -#include <bitset> -#endif #include <iostream> #include <limits> + FixedPointCoordinate::FixedPointCoordinate() : lat(std::numeric_limits<int>::min()), lon(std::numeric_limits<int>::min()) { @@ -47,20 +43,6 @@ FixedPointCoordinate::FixedPointCoordinate() FixedPointCoordinate::FixedPointCoordinate(int lat, int lon) : lat(lat), lon(lon) { -#ifndef NDEBUG - if (0 != (std::abs(lat) >> 30)) - { - std::bitset<32> y_coordinate_vector(lat); - SimpleLogger().Write(logDEBUG) << "broken lat: " << lat - << ", bits: " << y_coordinate_vector; - } - if (0 != (std::abs(lon) >> 30)) - { - std::bitset<32> x_coordinate_vector(lon); - SimpleLogger().Write(logDEBUG) << "broken lon: " << lon - << ", bits: " << x_coordinate_vector; - } -#endif } void FixedPointCoordinate::Reset() |