mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[build scripts] API cleanup: remove unused deprecated API (IJPL-503)
GitOrigin-RevId: ebb4026c468753cd0c93673edfa0f9aa579d63a6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d1f06f6197
commit
9b190fe52b
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user