private TransitSchedule cleanUpSchedule(TransitSchedule newTransitSchedule){
  newTransitSchedule=TransitScheduleCleaner.removeRoutesWithoutDepartures(newTransitSchedule);
  newTransitSchedule=TransitScheduleCleaner.removeEmptyLines(newTransitSchedule);
  newTransitSchedule=TransitScheduleCleaner.removeStopsNotUsed(newTransitSchedule);
  return newTransitSchedule;
}

private TransitSchedule cleanUpSchedule ( TransitSchedule newTransitSchedule ) { newTransitSchedule = TransitScheduleCleaner . removeRoutesWithoutDepartures ( newTransitSchedule ) ; newTransitSchedule = TransitScheduleCleaner . removeEmptyLines ( newTransitSchedule ) ; newTransitSchedule = TransitScheduleCleaner . removeStopsNotUsed ( newTransitSchedule ) ; return newTransitSchedule ; }
removes all routes without any departure from the schedule . removes all lines without any route from the schedule . removes all stops not referenced by any line from the schedule .
