[K/N] Remove obsolete TempFiles constructor parameter

This commit is contained in:
Sergey Bogolepov
2023-01-25 17:46:15 +02:00
committed by Space Team
parent 6a06be08cd
commit 7402ef24bb
3 changed files with 3 additions and 3 deletions
@@ -310,7 +310,7 @@ private fun processCLib(
val libName = additionalArgs.cstubsName ?: fqParts.joinToString("") + "stubs"
val tempFiles = TempFiles(libName, cinteropArguments.tempDir)
val tempFiles = TempFiles(cinteropArguments.tempDir)
val imports = parseImports(allLibraryDependencies)
@@ -55,7 +55,7 @@ internal class NativeGenerationState(
it
else File(it, CacheSupport.cacheFileId(singleFileStrategy.fqName, singleFileStrategy.filePath)).path
}
TempFiles(outputFiles.outputName, pathToTempDir)
TempFiles(pathToTempDir)
}
val outputFile = outputFiles.mainFileName
@@ -22,7 +22,7 @@ import org.jetbrains.kotlin.konan.file.*
* Creates and stores temporary compiler outputs
* If pathToTemporaryDir is given and is not empty then temporary outputs will be preserved
*/
class TempFiles(outputPath: String, pathToTemporaryDir: String? = null) {
class TempFiles(pathToTemporaryDir: String? = null) {
fun dispose() {
if (deleteOnExit) {
// Note: this can throw an exception if a file deletion is failed for some reason (e.g. OS is Windows and the file is in use).