Skip to content

Commit ab6e7dc

Browse files
committed
Deduplicate CompilationTests.sources
1 parent a00d8be commit ab6e7dc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,6 @@ class CompilationTests extends ParallelTesting {
228228
compileDir("../library/src",
229229
allowDeepSubtypes.and("-Ycheck-reentrant", "-strict", "-priorityclasspath", defaultOutputDir))
230230

231-
def sources(paths: JStream[Path], excludedFiles: List[String] = Nil): List[String] =
232-
paths.iterator().asScala
233-
.filter(path =>
234-
(path.toString.endsWith(".scala") || path.toString.endsWith(".java"))
235-
&& !excludedFiles.contains(path.getFileName.toString))
236-
.map(_.toString).toList
237-
238231
val compilerDir = Paths.get("../compiler/src")
239232
val compilerSources = sources(Files.walk(compilerDir))
240233

0 commit comments

Comments
 (0)