Skip to content

Commit f0bf27a

Browse files
committed
Remove unused method (#27508)
1 parent 27ae6ac commit f0bf27a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/VersionCollection.groovy

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,6 @@ class VersionCollection {
128128
return version
129129
}
130130

131-
/**
132-
* @return The snapshot at the end of the previous-but-one minor series in the current major series, if the previous minor series
133-
* exists and has not yet been released. Otherwise null.
134-
*/
135-
Version getBWCSnapshotForPreviousMinorOfCurrentMajor() {
136-
// If we are at 6.2.0 but 6.1.0 has not yet been released then we
137-
// need to test against 6.0.1-SNAPSHOT too
138-
final Version v = BWCSnapshotForCurrentMajor
139-
if (v == null || v.revision != 0 || v.minor == 0) {
140-
return null
141-
}
142-
return versions.find { it.major == v.major && it.minor == v.minor - 1 && it.snapshot }
143-
}
144-
145131
private Version getLastSnapshotWithMajor(int targetMajor) {
146132
final String currentVersion = currentVersion.toString()
147133
final int snapshotIndex = versions.findLastIndexOf {

0 commit comments

Comments
 (0)