Skip to content

Commit 3d176cf

Browse files
committed
Remove the targetCoordinates mapping after reroute after dependency upgrade.
1 parent 0eeb848 commit 3d176cf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Sources/MapboxCoreNavigation/RouteController.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -930,15 +930,6 @@ extension RouteController: ReroutingControllerDelegate {
930930
}
931931

932932
func rerouteControllerDidRecieveReroute(_ rerouteController: RerouteController, response: RouteResponse, options: RouteOptions, routeOrigin: RouterOrigin) {
933-
// The response and options after reroute lost waypoint targetCoordinate.
934-
if response.waypoints?.count == routeProgress.routeOptions.waypoints.count,
935-
options.waypoints.count == routeProgress.routeOptions.waypoints.count {
936-
for (index, previousWayoint) in routeProgress.routeOptions.waypoints.enumerated() {
937-
response.waypoints?[index].targetCoordinate = previousWayoint.targetCoordinate
938-
options.waypoints[index].targetCoordinate = previousWayoint.targetCoordinate
939-
}
940-
}
941-
942933
let indexedRouteResponse = IndexedRouteResponse(routeResponse: response,
943934
routeIndex: 0,
944935
responseOrigin: routeOrigin)

0 commit comments

Comments
 (0)