Skip to content

Commit 63196bc

Browse files
Remove unused exception
1 parent 48687a3 commit 63196bc

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

  • street/src/main/java/org/opentripplanner/street/search/state

street/src/main/java/org/opentripplanner/street/search/state/State.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -582,15 +582,4 @@ private State reversedClone() {
582582
return new State(this.vertex, getTime(), newStateData, reversedRequest);
583583
}
584584

585-
/**
586-
* This exception is thrown when an edge has a negative weight. Dijkstra's algorithm (and A*) don't
587-
* work on graphs that have negative weights. This exception almost always indicates a programming
588-
* error, but could be caused by bad GTFS data.
589-
*/
590-
private static class NegativeWeightException extends RuntimeException {
591-
592-
public NegativeWeightException(String message) {
593-
super(message);
594-
}
595-
}
596585
}

0 commit comments

Comments
 (0)