diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-12 18:13:39 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-12 18:13:39 -0800 |
commit | 654e215032d78ff53750f17b32ece30185bf0f48 (patch) | |
tree | fbb74ca28f5428405940e72c1ce3ed7d73e2377d /scalaplugin/src | |
parent | 9470a824de5be5dd633e7b6598a2a2f56f2cad63 (diff) | |
download | mill-654e215032d78ff53750f17b32ece30185bf0f48.tar.gz mill-654e215032d78ff53750f17b32ece30185bf0f48.tar.bz2 mill-654e215032d78ff53750f17b32ece30185bf0f48.zip |
remove dead function
Diffstat (limited to 'scalaplugin/src')
-rw-r--r-- | scalaplugin/src/main/scala/mill/scalaplugin/Subproject.scala | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/scalaplugin/src/main/scala/mill/scalaplugin/Subproject.scala b/scalaplugin/src/main/scala/mill/scalaplugin/Subproject.scala index 61c6812b..4b843cfb 100644 --- a/scalaplugin/src/main/scala/mill/scalaplugin/Subproject.scala +++ b/scalaplugin/src/main/scala/mill/scalaplugin/Subproject.scala @@ -22,31 +22,7 @@ import xsbti.compile.DependencyChanges object Subproject{ - def runTests(frameworkName: String, - testClassloader: URLClassLoader) = { - val framework = Class.forName(frameworkName) - .newInstance() - .asInstanceOf[sbt.testing.Framework] - - val fingerprints = framework.fingerprints() - val testClasses = for{ - url <- testClassloader.getURLs - path <- ls.rec(ammonite.ops.Path(url.getFile)).toIterator - if path.ext == "class" - className = (path/up/path.last.stripSuffix(".class")).segments.mkString(".") - cls = testClassloader.loadClass(className) - if fingerprints.exists{ - case f: SubclassFingerprint => - cls.isAssignableFrom(cls) - case f: AnnotatedFingerprint => - cls.isAnnotationPresent( - Class.forName(f.annotationName()).asInstanceOf[Class[Annotation]] - ) - } - } yield cls - - } def compileScala(scalaVersion: String, sources: PathRef, compileClasspath: Seq[PathRef], |