From a0707124f2caa9a3bca3665e242bcc693899b8b8 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 19 Apr 2022 08:42:00 +0200 Subject: [PATCH] Remove unused method See gh-30655 --- .../autoconfigure/flyway/FlywayAutoConfiguration.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java index 711a12bce7..96da586a59 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java @@ -325,15 +325,6 @@ public class FlywayAutoConfiguration { } } - private boolean hasAtLeastOneLocation(ResourceLoader resourceLoader, Collection locations) { - for (String location : locations) { - if (resourceLoader.getResource(normalizePrefix(location)).exists()) { - return true; - } - } - return false; - } - private String normalizePrefix(String location) { return location.replace("filesystem:", "file:"); }