Skip to content

Commit

Permalink
Remove unused debugging method
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Nov 16, 2023
1 parent 3a4f8d7 commit 878bad0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/main/java/org/opentripplanner/street/search/state/State.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.time.Instant;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Stream;
Expand Down Expand Up @@ -482,21 +481,6 @@ public String toString() {
.toString();
}

/**
* Iterates over all back states of this instance and returns them as a list.
* <p>
* Note: Use this only for debugging not for performance-critical paths!
*/
public List<State> chain() {
List<State> states = new ArrayList<>();
State current = this;
while (current != null) {
states.add(current);
current = current.backState;
}
return states;
}

void checkNegativeWeight() {
double dw = this.weight - backState.weight;
if (dw < 0) {
Expand Down

0 comments on commit 878bad0

Please sign in to comment.