Remove old method

This commit is contained in:
Geoffrey Churchill 2022-07-31 16:26:44 -04:00 committed by GitHub
parent 5a1208f029
commit 8a88b469e0
1 changed files with 3 additions and 9 deletions

View File

@ -53,10 +53,4 @@ public class StreamAddUnitTest {
Stream.of(elem)),
StreamSupport.stream(spliterator, /* parallel= */ false));
}
private <T> Stream<T> insertInStream(Stream<T> stream, T elem, int index) {
List<T> result = stream.collect(Collectors.toList());
result.add(index, elem);
return result.stream();
}
}