Skip to content

Commit 6ff3fbc

Browse files
committed
Kotlin 2.2 migration: Removed methods that were deprecated with error level and are now removed from KGP
KT-64517, KT-71608
1 parent 4d1fe43 commit 6ff3fbc

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

build-logic/src/main/kotlin/ktorbuild/internal/TrackedKotlinHierarchy.kt

-25
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
1111
import org.jetbrains.kotlin.gradle.plugin.KotlinHierarchyBuilder
1212
import org.jetbrains.kotlin.gradle.plugin.KotlinHierarchyTemplate
1313
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
14-
import org.jetbrains.kotlin.konan.target.REMOVED_TARGET_MESSAGE
1514

1615
private typealias GroupedSourceSets = MutableMap<String, MutableSet<String>>
1716

@@ -122,7 +121,6 @@ private class KotlinHierarchyTrackerImpl(
122121
override fun withWasmWasi() = addTarget("wasmWasi")
123122

124123
@Deprecated("Renamed to 'withAndroidTarget'", replaceWith = ReplaceWith("withAndroidTarget()"))
125-
override fun withAndroid() = withAndroidTarget()
126124
override fun withAndroidTarget() = addTarget("android")
127125
override fun withAndroidNativeX64() = addTarget("androidNativeX64")
128126
override fun withAndroidNativeX86() = addTarget("androidNativeX86")
@@ -148,29 +146,6 @@ private class KotlinHierarchyTrackerImpl(
148146
override fun withMingwX64() = addTarget("mingwX64")
149147
//endregion
150148

151-
//region Removed targets
152-
@Deprecated(REMOVED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
153-
override fun withIosArm32() = error("Target removed")
154-
155-
@Deprecated(REMOVED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
156-
override fun withWatchosX86() = error("Target removed")
157-
158-
@Deprecated(REMOVED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
159-
override fun withMingwX86() = error("Target removed")
160-
161-
@Deprecated(REMOVED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
162-
override fun withLinuxArm32Hfp() = error("Target removed")
163-
164-
@Deprecated(REMOVED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
165-
override fun withLinuxMips32() = error("Target removed")
166-
167-
@Deprecated(REMOVED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
168-
override fun withLinuxMipsel32() = error("Target removed")
169-
170-
@Deprecated(REMOVED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
171-
override fun withWasm32() = error("Target removed")
172-
//endregion
173-
174149
private fun addTarget(name: String) {
175150
if (groupName == null) return
176151
check(!targetsFrozen) { "Can't add targets to already declared group: $groupName" }

0 commit comments

Comments
 (0)