From ea07c941fb4ab5758500efa3ab2cb8c39ddf0619 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Fri, 10 Jun 2011 07:48:53 -0400 Subject: [PATCH] remove code obsolete after 0.7.1 --- ivy/ComponentManager.scala | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ivy/ComponentManager.scala b/ivy/ComponentManager.scala index bb1047b3d..16ff083da 100644 --- a/ivy/ComponentManager.scala +++ b/ivy/ComponentManager.scala @@ -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") } \ No newline at end of file