Skip to content

Commit 3605cd3

Browse files
committed
Remove dead code
1 parent 39cc3d7 commit 3605cd3

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
869869
def checkCompile()(implicit summaryReport: SummaryReporting): this.type = {
870870
val test = new PosTest(targets, times, threadLimit, shouldFail || shouldSuppressOutput).executeTestSuite()
871871

872-
// cleanup()
872+
cleanup()
873873

874874
if (!shouldFail && test.didFail) {
875875
fail(s"Expected no errors when compiling, failed for the following reason(s):\n${ reasonsForFailure(test) }")
@@ -990,21 +990,6 @@ trait ParallelTesting extends RunnerOrchestration { self =>
990990
target.toFile
991991
}
992992

993-
/** Builds a new `CompilationTest` where we have copied the target files to
994-
* the out directory. This is needed for tests that modify the
995-
* source, such as `-rewrite` tests
996-
*/
997-
def copyToTarget()(implicit summary: SummaryReporting): CompilationTest =
998-
new CompilationTest (
999-
targets.map {
1000-
case target @ JointCompilationSource(_, files, _, outDir, _, _) =>
1001-
target.copy(files = files.map(copyToDir(outDir,_)))
1002-
case target @ SeparateCompilationSource(_, dir, _, outDir) =>
1003-
target.copy(dir = copyToDir(outDir, dir))
1004-
},
1005-
times, shouldDelete, threadLimit, shouldFail, shouldSuppressOutput
1006-
)
1007-
1008993
/** Builds a `CompilationTest` which performs the compilation `i` times on
1009994
* each target
1010995
*/

0 commit comments

Comments
 (0)