mirror of https://github.com/sbt/sbt.git
Remove dead code
This commit is contained in:
parent
dd4dbb41f9
commit
63aab86d54
|
|
@ -83,17 +83,6 @@ object Cache {
|
|||
}
|
||||
|
||||
|
||||
def locally(file: File, url: String): EitherT[Task, FileError, File] =
|
||||
EitherT {
|
||||
Task {
|
||||
if (file.exists()) {
|
||||
logger.foreach(_.foundLocally(url, file))
|
||||
\/-(file)
|
||||
} else
|
||||
-\/(FileError.NotFound(file.toString): FileError)
|
||||
}
|
||||
}
|
||||
|
||||
def fileLastModified(file: File): EitherT[Task, FileError, Option[Long]] =
|
||||
EitherT {
|
||||
Task {
|
||||
|
|
@ -235,15 +224,6 @@ object Cache {
|
|||
for ((f, url) <- pairs) yield {
|
||||
val file = new File(f)
|
||||
|
||||
val isRemote = url != ("file:" + f) && url != ("file://" + f)
|
||||
val cachePolicy0 =
|
||||
if (!isRemote)
|
||||
CachePolicy.LocalOnly
|
||||
else if (cachePolicy == CachePolicy.UpdateChanging && !artifact.changing)
|
||||
CachePolicy.FetchMissing
|
||||
else
|
||||
cachePolicy
|
||||
|
||||
val res = cachePolicy match {
|
||||
case CachePolicy.LocalOnly =>
|
||||
checkFileExists(file, url)
|
||||
|
|
|
|||
Loading…
Reference in New Issue