Remove dead code

This commit is contained in:
Alexandre Archambault 2015-12-30 01:34:43 +01:00
parent dd4dbb41f9
commit 63aab86d54
1 changed files with 0 additions and 20 deletions

View File

@ -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)