Removed unused variable in loops.
FEA: ItEr75S04BugFixing
This commit is contained in:
parent
95d210b39b
commit
2c7619850f
2 changed files with 0 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue