diff --git a/routing/route.cpp b/routing/route.cpp index 602ff31dac..d144c70901 100644 --- a/routing/route.cpp +++ b/routing/route.cpp @@ -228,12 +228,6 @@ bool Route::MoveIterator(location::GpsInfo const & info) const return res.IsValid(); } -double Route::GetCurrentSqDistance(m2::PointD const & pt) const -{ - ASSERT(m_poly.IsValid(), ()); - return pt.SquareLength(m_poly.GetCurrentIter().m_pt); -} - double Route::GetPolySegAngle(size_t ind) const { size_t const polySz = m_poly.GetPolyline().GetSize(); diff --git a/routing/route.hpp b/routing/route.hpp index 86f199aedd..45bbe66caa 100644 --- a/routing/route.hpp +++ b/routing/route.hpp @@ -94,8 +94,6 @@ public: /// @return true If position was updated successfully (projection within gps error radius). bool MoveIterator(location::GpsInfo const & info) const; - /// Square distance to current projection in mercator. - double GetCurrentSqDistance(m2::PointD const & pt) const; void MatchLocationToRoute(location::GpsInfo & location, location::RouteMatchingInfo & routeMatchingInfo) const; bool IsCurrentOnEnd() const;