From 05a87b4111e2350317007cc5eb903321b38f7ab3 Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Mon, 20 Mar 2023 18:19:25 +0000 Subject: [PATCH] [Gradle, JS] Remove deprecation from methods ^KTIJ-24913 fixed --- .../kotlin/gradle/targets/js/dsl/KotlinJsTargetDsl.kt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/dsl/KotlinJsTargetDsl.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/dsl/KotlinJsTargetDsl.kt index 86984d36c2f28..a9bbdc5974f33 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/dsl/KotlinJsTargetDsl.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/dsl/KotlinJsTargetDsl.kt @@ -78,7 +78,6 @@ interface KotlinJsSubTargetDsl { @ExperimentalDistributionDsl fun distribution(body: Action) - @Deprecated("Use distribution(Action)", ReplaceWith("distribution(Action { body(it) }")) @ExperimentalDistributionDsl fun distribution(body: Distribution.() -> Unit) { distribution(Action { body(it) }) @@ -86,7 +85,6 @@ interface KotlinJsSubTargetDsl { fun testTask(body: Action) - @Deprecated("Use testTask(Action)", ReplaceWith("testTask(Action { body(it) }")) fun testTask(body: KotlinJsTest.() -> Unit) { testTask(Action { body(it) }) } @@ -97,21 +95,18 @@ interface KotlinJsSubTargetDsl { interface KotlinJsBrowserDsl : KotlinJsSubTargetDsl { fun commonWebpackConfig(body: Action) - @Deprecated("Use commonWebpackConfig(Action)", ReplaceWith("commonWebpackConfig(Action { body(it) }")) fun commonWebpackConfig(body: KotlinWebpackConfig.() -> Unit) { commonWebpackConfig(Action { body(it) }) } fun runTask(body: Action) - @Deprecated("Use runTask(Action)", ReplaceWith("runTask(Action { body(it) }")) fun runTask(body: KotlinWebpack.() -> Unit) { runTask(Action { body(it) }) } fun webpackTask(body: Action) - @Deprecated("Use webpackTask(Action)", ReplaceWith("webpackTask(Action { body(it) }")) fun webpackTask(body: KotlinWebpack.() -> Unit) { webpackTask(Action { body(it) }) } @@ -119,7 +114,6 @@ interface KotlinJsBrowserDsl : KotlinJsSubTargetDsl { @ExperimentalDceDsl fun dceTask(body: Action) - @Deprecated("Use dceTask(Action)", ReplaceWith("dceTask(Action { body(it) }")) @ExperimentalDceDsl fun dceTask(body: KotlinJsDce.() -> Unit) { dceTask(Action { body(it) }) @@ -129,7 +123,6 @@ interface KotlinJsBrowserDsl : KotlinJsSubTargetDsl { interface KotlinJsNodeDsl : KotlinJsSubTargetDsl { fun runTask(body: Action) - @Deprecated("Use runTask(Action)", ReplaceWith("runTask(Action { body(it) }")) fun runTask(body: NodeJsExec.() -> Unit) { runTask(Action { body(it) }) }