mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 09:29:49 +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"))
|
||||
{
|
||||
XmlPullUtil.enter(pp, "StationTable");
|
||||
if (pp.getEventType() == XmlPullParser.TEXT)
|
||||
pp.nextTag();
|
||||
}
|
||||
|
||||
while (XmlPullUtil.test(pp, "Journey"))
|
||||
|
@ -776,18 +774,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
departures.add(departure);
|
||||
}
|
||||
|
||||
if (pp.isEmptyElementTag())
|
||||
{
|
||||
XmlPullUtil.next(pp);
|
||||
}
|
||||
else
|
||||
{
|
||||
XmlPullUtil.enter(pp, "Journey");
|
||||
XmlPullUtil.exit(pp, "Journey");
|
||||
}
|
||||
|
||||
if (pp.getEventType() == XmlPullParser.TEXT)
|
||||
pp.nextTag();
|
||||
XmlPullUtil.requireSkip(pp, "Journey");
|
||||
}
|
||||
|
||||
result.stationDepartures.add(new StationDepartures(new Location(LocationType.STATION, stationId), departures, null));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue