From f980bd115527d813dd0338dd03a5b8317a94b3b0 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Fri, 12 May 2017 20:49:31 +0300 Subject: [PATCH] Revert "[routing] Route calculation on world graph in case of start and finish leaps." This reverts commit ac7c73ee22e22ea637789bf8fc69744978c705b3. --- routing/index_router.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/routing/index_router.cpp b/routing/index_router.cpp index 95f1f1235c..3a7c7fa3aa 100644 --- a/routing/index_router.cpp +++ b/routing/index_router.cpp @@ -316,13 +316,6 @@ IRouter::ResultCode IndexRouter::ProcessLeaps(vector const & input, continue; } - // In case of leaps from the start to its mwm transition and from finish mwm transition - // Route calculation should be made on the world graph (WorldGraph::Mode::NoLeaps). - if ((i == 0 || i + 2 == input.size()) && worldRouteMode == WorldGraph::Mode::LeapsOnly) - worldGraph.SetMode(WorldGraph::Mode::NoLeaps); - else - worldGraph.SetMode(WorldGraph::Mode::SingleMwm); - ++i; CHECK_LESS(i, input.size(), ()); Segment const & next = input[i];