Removed unused variable in loops.

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-08-23 19:46:28 +02:00
parent 95d210b39b
commit 2c7619850f
2 changed files with 0 additions and 4 deletions

View file

@ -105,13 +105,11 @@ public class SigmoidFunction extends AssignmentFunction {
List<BigDecimal> result = new ArrayList<BigDecimal>();
LocalDate day = new LocalDate(resourceAllocation.getStartDate());
final LocalDate end = resourceAllocation.getEndDate();
int i = 0;
while (day.isBefore(end)) {
int hoursAllocated = resourceAllocation.getAssignedHours(day, day.plusDays(1));
if (hoursAllocated != 0) {
result.add(new BigDecimal(hoursAllocated));
i++;
}
day = day.plusDays(1);
}

View file

@ -84,13 +84,11 @@ public abstract class UntilFillingHoursAllocator {
private IntraDayDate untilAllocating(final IntraDayDate dateFromWhichToAllocate,
List<EffortPerAllocation> effortPerAllocation) {
int i = 0;
IntraDayDate currentResult = dateFromWhichToAllocate;
for (EffortPerAllocation each : effortPerAllocation) {
IntraDayDate candidate = untilAllocating(dateFromWhichToAllocate,
each.allocation, each.duration);
currentResult = pickCurrentOrCandidate(currentResult, candidate);
i++;
}
setAssignmentsForEachAllocation(currentResult);
return currentResult;