From 891693563960916d444756e2ef300d509cb5492a Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 24 Nov 2017 08:09:31 +0000 Subject: [PATCH] Remove unused method (#27508) --- .../elasticsearch/gradle/VersionCollection.groovy | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/VersionCollection.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/VersionCollection.groovy index 7ba0dc19e4999..cae67d2067f35 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/VersionCollection.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/VersionCollection.groovy @@ -128,20 +128,6 @@ class VersionCollection { return version } - /** - * @return The snapshot at the end of the previous-but-one minor series in the current major series, if the previous minor series - * exists and has not yet been released. Otherwise null. - */ - Version getBWCSnapshotForPreviousMinorOfCurrentMajor() { - // If we are at 6.2.0 but 6.1.0 has not yet been released then we - // need to test against 6.0.1-SNAPSHOT too - final Version v = BWCSnapshotForCurrentMajor - if (v == null || v.revision != 0 || v.minor == 0) { - return null - } - return versions.find { it.major == v.major && it.minor == v.minor - 1 && it.snapshot } - } - private Version getLastSnapshotWithMajor(int targetMajor) { final String currentVersion = currentVersion.toString() final int snapshotIndex = versions.findLastIndexOf {