Skip to content

Commit

Permalink
Remove hack that ignores specific line
Browse files Browse the repository at this point in the history
  • Loading branch information
lassetyr committed Aug 8, 2023
1 parent bbcc083 commit 65fe269
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ protected String apply(String value) {

@Override
public void process(Siri siri) {
Set<String> linesToIgnore = Set.of("VYG:Line:F4");

long startTime = System.currentTimeMillis();
int previousSize = 0;
Expand Down Expand Up @@ -152,13 +151,6 @@ public void process(Siri siri) {
Map<String, EstimatedVehicleJourney> populateMissingStopsInStartOfJourneyList = new HashMap<>();
Map<String, EstimatedVehicleJourney> populateMissingStopsInEndOfJourneyList = new HashMap<>();

if (!linesToIgnore.isEmpty()) {
int sizeBefore = estimatedVehicleJourneies.size();
if (estimatedVehicleJourneies.removeIf(et -> linesToIgnore.contains(et.getLineRef().getValue()))) {
logger.warn("Ignored {} updates from lines: {}", (sizeBefore - estimatedVehicleJourneies.size()), linesToIgnore);
}
}

for (EstimatedVehicleJourney estimatedVehicleJourney : estimatedVehicleJourneies) {

if (estimatedVehicleJourney.getVehicleRef() != null) {
Expand Down

0 comments on commit 65fe269

Please sign in to comment.