Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
aNNiMON committed Feb 3, 2016
1 parent 80885bb commit d2d2412
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/main/java/com/annimon/stream/Stream.java
Original file line number Diff line number Diff line change
Expand Up @@ -677,24 +677,6 @@ public void forEach(final Consumer<? super T> action) {
}
}

/**
* Reduces the elements using provided identity value and the associative accumulation function.
*
* <p>This is a terminal operation.
*
* @param identity the initial value
* @param accumulator the accumulation function
* @return the result of the reduction
*/
/*public T reduce(final T identity, BiFunction<T, T, T> accumulator) {
T result = identity;
while (iterator.hasNext()) {
final T value = iterator.next();
result = accumulator.apply(result, value);
}
return result;
}*/

/**
* Reduces the elements using provided identity value and the associative accumulation function.
*
Expand Down

0 comments on commit d2d2412

Please sign in to comment.