[K/N] Remove obsolete TempFiles constructor parameter
This commit is contained in:
committed by
Space Team
parent
6a06be08cd
commit
7402ef24bb
+1
-1
@@ -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)
|
||||
|
||||
|
||||
+1
-1
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user