[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")
|
@Suppress("DEPRECATION")
|
||||||
private fun jsInternal(
|
private fun jsInternal(
|
||||||
compiler: KotlinJsCompilerType? = null,
|
|
||||||
body: KotlinJsTargetDsl.() -> Unit,
|
body: KotlinJsTargetDsl.() -> Unit,
|
||||||
): KotlinJsTargetDsl {
|
): KotlinJsTargetDsl {
|
||||||
if (!targetFuture.isCompleted) {
|
if (!targetFuture.isCompleted) {
|
||||||
@@ -266,9 +265,10 @@ abstract class KotlinJsProjectExtension(project: Project) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun js(
|
fun js(
|
||||||
|
@Suppress("UNUSED_PARAMETER") // KT-64275
|
||||||
compiler: KotlinJsCompilerType = defaultJsCompilerType,
|
compiler: KotlinJsCompilerType = defaultJsCompilerType,
|
||||||
body: KotlinJsTargetDsl.() -> Unit = { },
|
body: KotlinJsTargetDsl.() -> Unit = { },
|
||||||
): KotlinJsTargetDsl = jsInternal(compiler, body)
|
): KotlinJsTargetDsl = jsInternal(body)
|
||||||
|
|
||||||
fun js(
|
fun js(
|
||||||
compiler: String,
|
compiler: String,
|
||||||
|
|||||||
-2
@@ -20,7 +20,6 @@ interface KotlinTargetContainerWithJsPresetFunctions :
|
|||||||
configure: KotlinJsTargetDsl.() -> Unit = { }
|
configure: KotlinJsTargetDsl.() -> Unit = { }
|
||||||
): KotlinJsTargetDsl = jsInternal(
|
): KotlinJsTargetDsl = jsInternal(
|
||||||
name,
|
name,
|
||||||
compiler,
|
|
||||||
configure
|
configure
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -78,7 +77,6 @@ interface KotlinTargetContainerWithJsPresetFunctions :
|
|||||||
|
|
||||||
private fun KotlinTargetContainerWithJsPresetFunctions.jsInternal(
|
private fun KotlinTargetContainerWithJsPresetFunctions.jsInternal(
|
||||||
name: String = "js",
|
name: String = "js",
|
||||||
compiler: KotlinJsCompilerType? = null,
|
|
||||||
configure: KotlinJsTargetDsl.() -> Unit
|
configure: KotlinJsTargetDsl.() -> Unit
|
||||||
): KotlinJsTargetDsl {
|
): KotlinJsTargetDsl {
|
||||||
@Suppress("UNCHECKED_CAST", "DEPRECATION")
|
@Suppress("UNCHECKED_CAST", "DEPRECATION")
|
||||||
|
|||||||
Reference in New Issue
Block a user