ItEr31S12ValidacionEProbasFuncionaisItEr30S17: Delete getFinishDate, never used locally
This commit is contained in:
parent
084aad247f
commit
686ed993bb
1 changed files with 0 additions and 14 deletions
|
|
@ -327,20 +327,6 @@ public abstract class Resource extends BaseEntity{
|
|||
return newSatisfaction;
|
||||
}
|
||||
|
||||
private Date getFinishDate(ICriterionType<?> type,
|
||||
CriterionSatisfaction newSatisfaction, Interval interval) {
|
||||
if (!type.isAllowSimultaneousCriterionsPerResource()) {
|
||||
CriterionSatisfaction posterior = getNext(type, newSatisfaction,
|
||||
this.getCriterionSatisfactions());
|
||||
if (posterior != null && posterior.overlapsWith(interval)) {
|
||||
assert !posterior.overlapsWith(Interval.range(interval
|
||||
.getStart(), posterior.getStartDate()));
|
||||
return posterior.getStartDate();
|
||||
}
|
||||
}
|
||||
return interval.getEnd();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param orderedSatisfactions
|
||||
* @param newSatisfaction
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue