mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 22:19:50 +00:00
Remove remains of manual XML text skipping.
This commit is contained in:
parent
e1233210dd
commit
28c0709a3c
1 changed files with 1 additions and 14 deletions
|
@ -638,8 +638,6 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
if (XmlPullUtil.test(pp, "StationTable"))
|
if (XmlPullUtil.test(pp, "StationTable"))
|
||||||
{
|
{
|
||||||
XmlPullUtil.enter(pp, "StationTable");
|
XmlPullUtil.enter(pp, "StationTable");
|
||||||
if (pp.getEventType() == XmlPullParser.TEXT)
|
|
||||||
pp.nextTag();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while (XmlPullUtil.test(pp, "Journey"))
|
while (XmlPullUtil.test(pp, "Journey"))
|
||||||
|
@ -776,18 +774,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
departures.add(departure);
|
departures.add(departure);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pp.isEmptyElementTag())
|
XmlPullUtil.requireSkip(pp, "Journey");
|
||||||
{
|
|
||||||
XmlPullUtil.next(pp);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
XmlPullUtil.enter(pp, "Journey");
|
|
||||||
XmlPullUtil.exit(pp, "Journey");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pp.getEventType() == XmlPullParser.TEXT)
|
|
||||||
pp.nextTag();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
result.stationDepartures.add(new StationDepartures(new Location(LocationType.STATION, stationId), departures, null));
|
result.stationDepartures.add(new StationDepartures(new Location(LocationType.STATION, stationId), departures, null));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue