mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
revert workaround, because the problem was fixed on the backend
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@398 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
51db8036e5
commit
3d490ff950
1 changed files with 0 additions and 14 deletions
|
@ -610,20 +610,6 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
}
|
||||
}
|
||||
|
||||
// workaround for live departures delivered unsorted
|
||||
if (live)
|
||||
{
|
||||
Collections.sort(departures, new Comparator<Departure>()
|
||||
{
|
||||
public int compare(final Departure d1, final Departure d2)
|
||||
{
|
||||
final Date t1 = d1.predictedTime != null ? d1.predictedTime : d1.plannedTime;
|
||||
final Date t2 = d2.predictedTime != null ? d2.predictedTime : d2.plannedTime;
|
||||
return t1.compareTo(t2);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return new QueryDeparturesResult(new Location(LocationType.STATION, Integer.parseInt(stationId), 0, 0, location), departures, null);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue