Skip to content

Commit

Permalink
Remove unused method (#27508)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner authored Nov 24, 2017
1 parent f1ebf36 commit 8916935
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8916935

Please sign in to comment.