Remove deduplication of unpacked_path_segments in MM collapsing (#4911)

* remove deduplication of unpacked_path_segments
This commit is contained in:
Karen Shea
2018-02-24 02:42:11 +01:00
committed by Daniel Patterson
parent 9b74a47c91
commit 43f0723b73
4 changed files with 69 additions and 9 deletions
-5
View File
@@ -139,11 +139,6 @@ inline InternalRouteResult CollapseInternalRouteResult(const InternalRouteResult
{
BOOST_ASSERT(!collapsed.unpacked_path_segments.empty());
auto &last_segment = collapsed.unpacked_path_segments.back();
// deduplicate last segment (needs to be checked for empty for the same node query edge
// case)
if (!last_segment.empty())
last_segment.pop_back();
// update target phantom node of leg
BOOST_ASSERT(!collapsed.segment_end_coordinates.empty());
collapsed.segment_end_coordinates.back().target_phantom =
leggy_result.segment_end_coordinates[i].target_phantom;