Skip to content

Commit

Permalink
Remove dead method
Browse files Browse the repository at this point in the history
  • Loading branch information
pdambrauskas committed Jun 10, 2024
1 parent 247cac1 commit a1197ac
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void processScheduledSessions() throws InterruptedException {
assertLocked();
var waitables = sessionService.fetchByState(ApplicationState.NOT_STARTED, SortOrder.ASC, 10).stream()
.map(this::launchSession)
.collect(Collectors.toList());
.toList();

for (var waitable : waitables) {
waitable.waitCompletion();
Expand Down Expand Up @@ -152,11 +152,6 @@ public void handleTimeout() {

}

private boolean isNotPermanent(AppConfiguration.SessionConfiguration sessionConfiguration, Application session) {
return sessionConfiguration.getPermanentSessions().stream()
.noneMatch(conf -> conf.getId().equals(session.getId()));
}

private <T> List<T> selfOrEmpty(List<T> list) {
return ofNullable(list).orElse(List.of());
}
Expand Down

0 comments on commit a1197ac

Please sign in to comment.