Minor. Remove the ugly `TODO KT-77244` comment from the source code
^KT-77242
^KT-65837
diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/ic/JsIrLinkerLoader.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/ic/JsIrLinkerLoader.kt
index c82f777..3793304 100644
--- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/ic/JsIrLinkerLoader.kt
+++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/ic/JsIrLinkerLoader.kt
@@ -48,7 +48,6 @@
) {
// This property is supposed to be accessed after all symbols have been deserialized.
// This way the linked would be able to track all cross-module dependencies, and make the proper module sorting.
- // TODO: This is a temporary measure that should be removed in the future (KT-77244).
val orderedFragments: Map<KotlinLibraryFile, IrModuleFragment> by lazy {
val unorderedModuleFragments: List<IrModuleFragment> = loadedFragments.values.toList()
diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/jsCompiler.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/jsCompiler.kt
index ae5adf0..9649211 100644
--- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/jsCompiler.kt
+++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/jsCompiler.kt
@@ -120,7 +120,6 @@
irLinker.clear()
// Sort dependencies after IR linkage.
- // TODO: This is a temporary measure that should be removed in the future (KT-77244).
val sortedModuleDependencies = irLinker.moduleDependencyTracker.reverseTopoOrder(moduleDependencies)
val allModules = when (mainModule) {
diff --git a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/wasmCompiler.kt b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/wasmCompiler.kt
index 35f3912..5174308 100644
--- a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/wasmCompiler.kt
+++ b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/wasmCompiler.kt
@@ -82,7 +82,6 @@
ExternalDependenciesGenerator(symbolTable, listOf(irLinker)).generateUnboundSymbolsAsDependencies()
// Sort dependencies after IR linkage.
- // TODO: This is a temporary measure that should be removed in the future (KT-77244).
val sortedModuleDependencies = irLinker.moduleDependencyTracker.reverseTopoOrder(moduleDependencies)
val allModules = when (mainModule) {
diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/IrModuleDependencyTracker.kt b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/IrModuleDependencyTracker.kt
index 050b6628..c38c6d4 100644
--- a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/IrModuleDependencyTracker.kt
+++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/IrModuleDependencyTracker.kt
@@ -10,7 +10,6 @@
import org.jetbrains.kotlin.utils.DFS
import org.jetbrains.kotlin.utils.addIfNotNull
-// TODO: This is a temporary measure that should be removed in the future (KT-77244).
interface IrModuleDependencyTracker {
fun addModuleForTracking(module: IrModuleFragment)
fun trackDependency(fromModule: IrModuleFragment, toModule: IrModuleFragment)
@@ -25,8 +24,7 @@
}
}
-// TODO: This is a temporary measure that should be removed in the future (KT-77244).
-class IrModuleDependencyTrackerImpl: IrModuleDependencyTracker {
+class IrModuleDependencyTrackerImpl : IrModuleDependencyTracker {
private val trackedModules: MutableMap<IrModuleFragment, /* dependencies */ MutableSet<IrModuleFragment>> = mutableMapOf()
override fun addModuleForTracking(module: IrModuleFragment) {
diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/KotlinIrLinker.kt b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/KotlinIrLinker.kt
index 2db47fe..10948d2 100644
--- a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/KotlinIrLinker.kt
+++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/KotlinIrLinker.kt
@@ -73,7 +73,6 @@
open val returnUnboundSymbolsIfSignatureNotFound: Boolean
get() = partialLinkageSupport.isEnabled
- // TODO: This is a temporary measure that should be removed in the future (KT-77244).
open val moduleDependencyTracker: IrModuleDependencyTracker get() = IrModuleDependencyTracker.DISABLED
protected open val userVisibleIrModulesSupport: UserVisibleIrModulesSupport get() = UserVisibleIrModulesSupport.DEFAULT
diff --git a/compiler/ir/serialization.js/src/org/jetbrains/kotlin/ir/backend/js/lower/serialization/ir/JsIrLinker.kt b/compiler/ir/serialization.js/src/org/jetbrains/kotlin/ir/backend/js/lower/serialization/ir/JsIrLinker.kt
index d735512..4f53e27 100644
--- a/compiler/ir/serialization.js/src/org/jetbrains/kotlin/ir/backend/js/lower/serialization/ir/JsIrLinker.kt
+++ b/compiler/ir/serialization.js/src/org/jetbrains/kotlin/ir/backend/js/lower/serialization/ir/JsIrLinker.kt
@@ -52,7 +52,6 @@
partialLinkageSupport = partialLinkageSupport
)
- // TODO: This is a temporary measure that should be removed in the future (KT-77244).
override val moduleDependencyTracker: IrModuleDependencyTracker = IrModuleDependencyTrackerImpl()
override fun isBuiltInModule(moduleDescriptor: ModuleDescriptor): Boolean =