[Gradle] Fix unused parameter warnings related to the legacy JS target

KT-64275
This commit is contained in:
Alexander.Likhachev
2023-12-12 21:28:49 +01:00
committed by Space Team
parent 1772620d16
commit aa20bcd522
2 changed files with 2 additions and 4 deletions
@@ -248,7 +248,6 @@ abstract class KotlinJsProjectExtension(project: Project) :
@Suppress("DEPRECATION")
private fun jsInternal(
compiler: KotlinJsCompilerType? = null,
body: KotlinJsTargetDsl.() -> Unit,
): KotlinJsTargetDsl {
if (!targetFuture.isCompleted) {
@@ -266,9 +265,10 @@ abstract class KotlinJsProjectExtension(project: Project) :
}
fun js(
@Suppress("UNUSED_PARAMETER") // KT-64275
compiler: KotlinJsCompilerType = defaultJsCompilerType,
body: KotlinJsTargetDsl.() -> Unit = { },
): KotlinJsTargetDsl = jsInternal(compiler, body)
): KotlinJsTargetDsl = jsInternal(body)
fun js(
compiler: String,
@@ -20,7 +20,6 @@ interface KotlinTargetContainerWithJsPresetFunctions :
configure: KotlinJsTargetDsl.() -> Unit = { }
): KotlinJsTargetDsl = jsInternal(
name,
compiler,
configure
)
@@ -78,7 +77,6 @@ interface KotlinTargetContainerWithJsPresetFunctions :
private fun KotlinTargetContainerWithJsPresetFunctions.jsInternal(
name: String = "js",
compiler: KotlinJsCompilerType? = null,
configure: KotlinJsTargetDsl.() -> Unit
): KotlinJsTargetDsl {
@Suppress("UNCHECKED_CAST", "DEPRECATION")