diff --git a/compiler/test/TestImportedModulesOrderAndOptions.kt b/compiler/test/TestImportedModulesOrderAndOptions.kt index 0f605275d..979350fa4 100644 --- a/compiler/test/TestImportedModulesOrderAndOptions.kt +++ b/compiler/test/TestImportedModulesOrderAndOptions.kt @@ -91,8 +91,7 @@ main { } } """ - @Suppress("DEPRECATION") // Thread.currentThread().id - val filenameBase = "on_the_fly_test_" + Thread.currentThread().id.toString() + "_" + sourceText.hashCode().toUInt().toString(16) + val filenameBase = "on_the_fly_test_${sourceText.hashCode().toUInt().toString(16)}" val filepath = outputDir.resolve("$filenameBase.p8") filepath.toFile().writeText(sourceText) diff --git a/compiler/test/helpers/compileXyz.kt b/compiler/test/helpers/compileXyz.kt index bd30b7f27..6c2bbffbb 100644 --- a/compiler/test/helpers/compileXyz.kt +++ b/compiler/test/helpers/compileXyz.kt @@ -61,8 +61,7 @@ internal fun compileText( errors: IErrorReporter? = null, writeAssembly: Boolean = true, ) : CompilationResult? { - @Suppress("DEPRECATION") // Thread.currentThread().id - val filePath = outputDir.resolve("on_the_fly_test_" + Thread.currentThread().id.toString() + "_" + sourceText.hashCode().toUInt().toString(16) + ".p8") + val filePath = outputDir.resolve("on_the_fly_test_${sourceText.hashCode().toUInt().toString(16)}.p8") // we don't assumeNotExists(filePath) - should be ok to just overwrite it filePath.toFile().writeText(sourceText) return compileFile(platform, optimize, filePath.parent, filePath.name, outputDir, diff --git a/compiler/test/helpers/paths.kt b/compiler/test/helpers/paths.kt index 970a584e5..8fdda2662 100644 --- a/compiler/test/helpers/paths.kt +++ b/compiler/test/helpers/paths.kt @@ -51,12 +51,3 @@ fun assumeDirectory(pathStr: String): Path = assumeDirectory(Path(pathStr)) fun assumeDirectory(path: Path, other: String): Path = assumeDirectory(path / other) fun assumeDirectory(pathStr: String, other: String): Path = assumeDirectory(Path(pathStr) / other) fun assumeDirectory(pathStr: String, other: Path): Path = assumeDirectory(Path(pathStr) / other) - - -@Deprecated( - "Directories are checked automatically at init.", - ReplaceWith("/* nothing */") -) -@Suppress("UNUSED_PARAMETER") -fun sanityCheckDirectories(workingDirName: String? = null) { -} diff --git a/docs/source/todo.rst b/docs/source/todo.rst index 052c94c56..9bed8782c 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -1,9 +1,6 @@ TODO ==== -- in unit test helpers: replace own temp file name creation by kotest tempfile(), instead of using Thread.currentThread().id, which is deprecated in newer Java versions - - - Look at github PR for improved romability (see github issue 149) Also search for "TODO: Romable" ...