remove code obsolete after 0.7.1

This commit is contained in:
Mark Harrah 2011-06-10 07:48:53 -04:00
parent 806dc7a638
commit ea07c941fb
1 changed files with 1 additions and 10 deletions

View File

@ -87,14 +87,5 @@ object ComponentManager
lazy val stampedVersion = version + "_" + timestamp
import java.net.URL
private def versionResource: URL =
{
import java.util.Collections.list
// could be just:
// getClass.getResource("/xsbt.version.properties")
// but the launcher up until 0.7.1 contained a stale xsbt.version.properties.
// post-0.7.1, only xsbti.jar contains xsbt.version.properties
// for the transition, we take the last one, which is the one we want because of the order resources are searched
list(getClass.getClassLoader.getResources("xsbt.version.properties")).toArray(new Array[URL](0)).last
}
private def versionResource: URL = getClass.getResource("/xsbt.version.properties")
}