[Gradle] Fix unused parameter warnings related to the legacy JS target
KT-64275
This commit is contained in:
committed by
Space Team
parent
1772620d16
commit
aa20bcd522
+2
-2
@@ -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,
|
||||
|
||||
-2
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user