@@ -11,7 +11,6 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
11
11
import org.jetbrains.kotlin.gradle.plugin.KotlinHierarchyBuilder
12
12
import org.jetbrains.kotlin.gradle.plugin.KotlinHierarchyTemplate
13
13
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
14
- import org.jetbrains.kotlin.konan.target.REMOVED_TARGET_MESSAGE
15
14
16
15
private typealias GroupedSourceSets = MutableMap <String , MutableSet <String >>
17
16
@@ -122,7 +121,6 @@ private class KotlinHierarchyTrackerImpl(
122
121
override fun withWasmWasi () = addTarget(" wasmWasi" )
123
122
124
123
@Deprecated(" Renamed to 'withAndroidTarget'" , replaceWith = ReplaceWith (" withAndroidTarget()" ))
125
- override fun withAndroid () = withAndroidTarget()
126
124
override fun withAndroidTarget () = addTarget(" android" )
127
125
override fun withAndroidNativeX64 () = addTarget(" androidNativeX64" )
128
126
override fun withAndroidNativeX86 () = addTarget(" androidNativeX86" )
@@ -148,29 +146,6 @@ private class KotlinHierarchyTrackerImpl(
148
146
override fun withMingwX64 () = addTarget(" mingwX64" )
149
147
// endregion
150
148
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
-
174
149
private fun addTarget (name : String ) {
175
150
if (groupName == null ) return
176
151
check(! targetsFrozen) { " Can't add targets to already declared group: $groupName " }
0 commit comments