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:
andreas.schildbach@gmail.com 2010-12-16 14:04:11 +00:00
parent 51db8036e5
commit 3d490ff950

View file

@ -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