[build scripts] API cleanup: remove unused deprecated API (IJPL-503)

GitOrigin-RevId: ebb4026c468753cd0c93673edfa0f9aa579d63a6
This commit is contained in:
Nikolay Chashnikov
2024-05-10 10:24:11 +02:00
committed by intellij-monorepo-bot
parent d1f06f6197
commit 9b190fe52b

View File

@@ -9,10 +9,8 @@ import kotlinx.collections.immutable.PersistentList
import kotlinx.collections.immutable.PersistentSet
import kotlinx.collections.immutable.persistentListOf
import kotlinx.collections.immutable.persistentSetOf
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.intellij.build.impl.PlatformLayout
import org.jetbrains.intellij.build.impl.PluginLayout
import java.util.function.BiConsumer
/**
* Default bundled plugins for all products.
@@ -85,14 +83,6 @@ class ProductModulesLayout {
*/
internal var platformLayoutSpec = persistentListOf<(PlatformLayout, BuildContext) -> Unit>()
@Deprecated("PlatformLayout should be immutable", replaceWith = ReplaceWith("addPlatformSpec"))
@ApiStatus.ScheduledForRemoval
fun addPlatformCustomizer(customizer: BiConsumer<PlatformLayout, BuildContext>) {
platformLayoutSpec = platformLayoutSpec.add { layout, context ->
customizer.accept(layout, context)
}
}
fun addPlatformSpec(customizer: (PlatformLayout, BuildContext) -> Unit) {
platformLayoutSpec = platformLayoutSpec.add(customizer)
}