Revert. Preparing for bugfix. Different current position in case of routing start point and current position.

This commit is contained in:
Vladimir Byko-Ianko 2016-04-28 17:17:18 +03:00 committed by Alex Zolotarev
parent 0381110d2d
commit e9d71d22b0
2 changed files with 1 additions and 7 deletions

View file

@ -2124,18 +2124,13 @@ int64_t Framework::GetCurrentDataVersion()
return m_storage.GetCurrentDataVersion();
}
bool Framework::GetMyPosition(m2::PointD & myPosition)
{
return m_drapeEngine->GetMyPosition(myPosition);
}
void Framework::BuildRoute(m2::PointD const & finish, uint32_t timeoutSec)
{
ASSERT_THREAD_CHECKER(m_threadChecker, ("BuildRoute"));
ASSERT(m_drapeEngine != nullptr, ());
m2::PointD start;
if (!GetMyPosition(start))
if (!m_drapeEngine->GetMyPosition(start))
{
CallRouteBuilded(IRouter::NoCurrentPosition, storage::TCountriesVec());
return;

View file

@ -317,7 +317,6 @@ public:
void OnLocationUpdate(location::GpsInfo const & info);
void OnCompassUpdate(location::CompassInfo const & info);
void SwitchMyPositionNextMode();
bool GetMyPosition(m2::PointD & myPosition);
/// Should be set before Drape initialization. Guarantees that fn is called in main thread context.
void SetMyPositionModeListener(location::TMyPositionModeChanged && fn);