Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesj committed Mar 25, 2022
1 parent 6d0772f commit e15bb2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,30 +279,6 @@ public ShortestPathTree getShortestPathTree(RoutingRequest options, double relTi

return spt;
}

/** Get an SPT, starting from a collection of states */
public ShortestPathTree getShortestPathTree(RoutingRequest options, double relTimeoutSeconds,
SearchTerminationStrategy terminationStrategy, Collection<State> initialStates) {

ShortestPathTree spt = null;
long abortTime = DateUtils.absoluteTimeout(relTimeoutSeconds);

startSearch (options, terminationStrategy, abortTime, false);

if (runState != null) {
for (State state : initialStates) {
runState.spt.add(state);
// TODO: hardwired for earliest arrival
// TODO: weights are seconds, no?
runState.pq.insert(state, state.getElapsedTimeSeconds());
}

runSearch(abortTime);
spt = runState.spt;
}

return spt;
}

public void setTraverseVisitor(TraverseVisitor traverseVisitor) {
this.traverseVisitor = traverseVisitor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ public List<GraphPath> getPaths(Vertex dest) {
return ret;
}

/** @return a default set of back-optimized paths to the target vertex. */
public List<GraphPath> getPaths() {
List<GraphPath> graphPaths = new ArrayList<>();
for (Vertex vertex : options.getRoutingContext().toVertices) {
graphPaths.addAll(getPaths(vertex));
}
return graphPaths;
}

/** @return a single optimal, optionally back-optimized path to the given vertex. */
public GraphPath getPath(Vertex dest) {
State s = getState(dest);
Expand Down

0 comments on commit e15bb2b

Please sign in to comment.