From 90f17c21404e6bfd527c9fd8bc1b931c962e6c56 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 22 Jan 2015 16:55:34 +0100 Subject: [PATCH] remove is_set() and reset() functions from coordinate --- Include/osrm/coordinate.hpp | 2 -- data_structures/coordinate.cpp | 9 --------- 2 files changed, 11 deletions(-) diff --git a/Include/osrm/coordinate.hpp b/Include/osrm/coordinate.hpp index 7a74498fc..546515d49 100644 --- a/Include/osrm/coordinate.hpp +++ b/Include/osrm/coordinate.hpp @@ -55,8 +55,6 @@ struct FixedPointCoordinate "coordinate types incompatible"); } - void reset(); - bool is_set() const; bool is_valid() const; bool operator==(const FixedPointCoordinate &other) const; diff --git a/data_structures/coordinate.cpp b/data_structures/coordinate.cpp index 00cacfeef..b7057d674 100644 --- a/data_structures/coordinate.cpp +++ b/data_structures/coordinate.cpp @@ -63,15 +63,6 @@ FixedPointCoordinate::FixedPointCoordinate(int lat, int lon) : lat(lat), lon(lon #endif } -void FixedPointCoordinate::reset() -{ - lat = std::numeric_limits::min(); - lon = std::numeric_limits::min(); -} -bool FixedPointCoordinate::is_set() const -{ - return (std::numeric_limits::min() != lat) && (std::numeric_limits::min() != lon); -} bool FixedPointCoordinate::is_valid() const { if (lat > 90 * COORDINATE_PRECISION || lat < -90 * COORDINATE_PRECISION ||