From e9abaa9b897b2beefd8ef4fe972229842ec397e3 Mon Sep 17 00:00:00 2001 From: Andrew Byrd Date: Thu, 26 Oct 2023 19:11:35 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Anson Stewart --- src/main/java/com/conveyal/r5/analyst/TravelTimeComputer.java | 1 - .../conveyal/r5/analyst/network/GridSinglePointTaskBuilder.java | 2 +- .../com/conveyal/r5/analyst/network/SimpsonDesertTests.java | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/conveyal/r5/analyst/TravelTimeComputer.java b/src/main/java/com/conveyal/r5/analyst/TravelTimeComputer.java index 5f8edf7c4..73bbd5567 100644 --- a/src/main/java/com/conveyal/r5/analyst/TravelTimeComputer.java +++ b/src/main/java/com/conveyal/r5/analyst/TravelTimeComputer.java @@ -7,7 +7,6 @@ import com.conveyal.r5.analyst.fare.InRoutingFareCalculator; import com.conveyal.r5.analyst.scenario.PickupWaitTimes; import com.conveyal.r5.api.util.LegMode; -import com.conveyal.r5.common.Util; import com.conveyal.r5.point_to_point.builder.PointToPointQuery; import com.conveyal.r5.profile.DominatingList; import com.conveyal.r5.profile.FareDominatingList; diff --git a/src/test/java/com/conveyal/r5/analyst/network/GridSinglePointTaskBuilder.java b/src/test/java/com/conveyal/r5/analyst/network/GridSinglePointTaskBuilder.java index 9165b6cea..740276ffe 100644 --- a/src/test/java/com/conveyal/r5/analyst/network/GridSinglePointTaskBuilder.java +++ b/src/test/java/com/conveyal/r5/analyst/network/GridSinglePointTaskBuilder.java @@ -54,7 +54,7 @@ public GridSinglePointTaskBuilder (GridLayout gridLayout) { task.walkSpeed = gridLayout.streetGridSpacingMeters / gridLayout.walkBlockTraversalTimeSeconds; // Record more detailed information to allow comparison to theoretical travel time distributions. task.recordTravelTimeHistograms = true; - // Set the destination grid extents on the task, otherwise if no freeform PointSet is specifid, it will fail + // Set the destination grid extents on the task, otherwise if no freeform PointSet is specified, the task will fail // checks on the grid dimensions and zoom level. WebMercatorExtents extents = WebMercatorExtents.forWgsEnvelope(gridLayout.gridEnvelope(), DEFAULT_ZOOM); task.zoom = extents.zoom; diff --git a/src/test/java/com/conveyal/r5/analyst/network/SimpsonDesertTests.java b/src/test/java/com/conveyal/r5/analyst/network/SimpsonDesertTests.java index 9d60dc301..e66599191 100644 --- a/src/test/java/com/conveyal/r5/analyst/network/SimpsonDesertTests.java +++ b/src/test/java/com/conveyal/r5/analyst/network/SimpsonDesertTests.java @@ -15,7 +15,6 @@ import java.util.HashMap; import java.util.Map; -import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertTrue; /**