Remove unnecessary code

The global end constraints are applied in the dominating forces when
appropriate.

FEA: ItEr66S04BugFixing
This commit is contained in:
Óscar González Fernández 2010-12-21 18:34:34 +01:00
parent b6b7327f72
commit 6cd735f009

View file

@ -1596,12 +1596,7 @@ public class GanttDiagramGraph<V, D extends IDependency<V>> implements
@Override
List<Constraint<GanttDate>> getEndConstraints() {
List<Constraint<GanttDate>> result = new ArrayList<Constraint<GanttDate>>();
result.addAll(adapter.getEndConstraintsFor(task));
if (scheduleBackwards) {
result.addAll(globalEndConstraints);
}
return result;
return adapter.getEndConstraintsFor(task);
}
private PositionRestrictions enforceRestrictions(GanttDate newEnd) {