mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
remove BreakScheduling.modifiedRoutes and its updating - it is never used
This commit is contained in:
parent
efc6109fa3
commit
4ac181165c
1 changed files with 1 additions and 6 deletions
|
|
@ -45,8 +45,6 @@ public class BreakScheduling implements InsertionStartsListener,JobInsertedListe
|
|||
|
||||
private final EventListeners eventListeners;
|
||||
|
||||
private Set<VehicleRoute> modifiedRoutes = new HashSet<VehicleRoute>();
|
||||
|
||||
public BreakScheduling(VehicleRoutingProblem vrp, StateManager stateManager, ConstraintManager constraintManager) {
|
||||
this.stateManager = stateManager;
|
||||
this.breakInsertionCalculator = new BreakInsertionCalculator(vrp.getTransportCosts(), vrp.getActivityCosts(), new LocalActivityInsertionCostsCalculator(vrp.getTransportCosts(), vrp.getActivityCosts(), stateManager), constraintManager, vrp.getJobActivityFactory());
|
||||
|
|
@ -78,7 +76,6 @@ public class BreakScheduling implements InsertionStartsListener,JobInsertedListe
|
|||
|
||||
@Override
|
||||
public void ruinStarts(Collection<VehicleRoute> routes) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -88,7 +85,7 @@ public class BreakScheduling implements InsertionStartsListener,JobInsertedListe
|
|||
boolean removed = route.getTourActivities().removeJob(aBreak);
|
||||
if(removed) logger.trace("ruin: {}", aBreak.getId());
|
||||
}
|
||||
List<Break> breaks = new ArrayList<Break>();
|
||||
List<Break> breaks = new ArrayList<>();
|
||||
for (Job j : unassignedJobs) {
|
||||
if (j instanceof Break) {
|
||||
breaks.add((Break) j);
|
||||
|
|
@ -99,7 +96,6 @@ public class BreakScheduling implements InsertionStartsListener,JobInsertedListe
|
|||
|
||||
@Override
|
||||
public void removed(Job job, VehicleRoute fromRoute) {
|
||||
if(fromRoute.getVehicle().getBreak() != null) modifiedRoutes.add(fromRoute);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -119,6 +115,5 @@ public class BreakScheduling implements InsertionStartsListener,JobInsertedListe
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue