Skip to content

Commit 9a543c2

Browse files
committed
Remove unused argument
1 parent 4d369ed commit 9a543c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/kotlin/com/tschuchort/compiletesting/KotlinCompilation.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ class KotlinCompilation : AbstractKotlinCompilation<K2JVMCompilerArguments>() {
456456
}
457457

458458
/** Performs the 3rd compilation step to compile Kotlin source files */
459-
private fun compileJvmKotlin(sourceFiles: List<Path>): ExitCode {
459+
private fun compileJvmKotlin(): ExitCode {
460460
val sources = sourcesWithPath.map { it.path } +
461461
kaptKotlinGeneratedDir.toPath().listFilesRecursively() +
462462
kaptSourceDir.toPath().listFilesRecursively()
@@ -634,7 +634,7 @@ class KotlinCompilation : AbstractKotlinCompilation<K2JVMCompilerArguments>() {
634634
}
635635

636636
// step 3: compile Kotlin files
637-
compileJvmKotlin(sourcesWithPath.map { it.path }).let { exitCode ->
637+
compileJvmKotlin().let { exitCode ->
638638
if(exitCode != ExitCode.OK) {
639639
return makeResult(exitCode)
640640
}

0 commit comments

Comments
 (0)