Skip to content

Commit 0b984e8

Browse files
committed
Remove unused function
1 parent 5485c54 commit 0b984e8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectivesSchema.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -192,23 +192,6 @@ private CompletableFuture<Object> applyRestrict(RestrictType restrict, Object re
192192
}
193193
}
194194

195-
private static <T> CompletableFuture<List<T>> all(List<CompletableFuture<T>> toReturn) {
196-
return CompletableFuture
197-
.allOf(toReturn.toArray(CompletableFuture[]::new))
198-
.thenApply(
199-
__ -> toReturn
200-
.stream()
201-
.map(m -> {
202-
try {
203-
return m.get();
204-
} catch (InterruptedException | ExecutionException e) {
205-
throw new RuntimeException(e);
206-
}
207-
})
208-
.collect(Collectors.toList())
209-
);
210-
}
211-
212195
public void addSchemaDirective(AnnotatedElement element, Class<?> location, Consumer<GraphQLAppliedDirective> builder) {
213196
for (Annotation annotation : element.getAnnotations()) {
214197
var processor = this.directiveProcessors.get(annotation.annotationType());

0 commit comments

Comments
 (0)