Skip to content

Commit c81cee8

Browse files
committed
FpKit now longer uses streams for performance reasons - tweak - removed unused code
1 parent 36fc91c commit c81cee8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/main/java/graphql/util/FpKit.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,6 @@ public static <T> List<List<T>> transposeMatrix(List<? extends List<T>> matrix)
278278
return result;
279279
}
280280

281-
public static <T> CompletableFuture<List<T>> flatList(CompletableFuture<List<List<T>>> cf) {
282-
return cf.thenApply(FpKit::flatList);
283-
}
284-
285-
public static <T> List<T> flatList(Collection<List<T>> listLists) {
286-
return listLists.stream()
287-
.flatMap(List::stream)
288-
.collect(ImmutableList.toImmutableList());
289-
}
290-
291281
public static <T> Optional<T> findOne(Collection<T> list, Predicate<T> filter) {
292282
for (T t : list) {
293283
if (filter.test(t)) {

0 commit comments

Comments
 (0)