From bbe980e9a5fba2e839affe469780963a738cb040 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Sat, 13 Feb 2010 17:36:54 -0500 Subject: [PATCH] remove unneeded arguments to Resources --- src/main/scala/sbt/Resources.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/sbt/Resources.scala b/src/main/scala/sbt/Resources.scala index 5ea2510f8..5c7137258 100644 --- a/src/main/scala/sbt/Resources.scala +++ b/src/main/scala/sbt/Resources.scala @@ -9,7 +9,7 @@ import FileUtilities._ object Resources { - def apply(basePath: String, provider: AppProvider, buildScalaVersion: Option[String]) = + def apply(basePath: String) = { require(basePath.startsWith("/")) val resource = getClass.getResource(basePath) @@ -19,7 +19,7 @@ object Resources { val file = toFile(resource) if(file.exists) - new Resources(file, provider, buildScalaVersion) + new Resources(file) else error("Resource base directory '" + basePath + "' does not exist.") } @@ -27,7 +27,7 @@ object Resources private val LoadErrorPrefix = "Error loading initial project: " } -class Resources(val baseDirectory: File, app: AppProvider, buildScalaVersion: Option[String]) +class Resources(val baseDirectory: File) { import Resources._ // The returned directory is not actually read-only, but it should be treated that way