Skip to content

Commit 763f869

Browse files
committed
Kotlin: Remove some redundant code
1 parent 4a02505 commit 763f869

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2594,10 +2594,7 @@ open class KotlinFileExtractor(
25942594
tw.writeCallableEnclosingExpr(id, callable)
25952595
tw.writeStatementEnclosingExpr(id, exprParent.enclosingStmt)
25962596

2597-
val vId = if (owner is IrValueParameter && owner.isExtensionReceiver())
2598-
useValueParameter(owner, useFunction(owner.parent as IrFunction))
2599-
else
2600-
useValueDeclaration(owner)
2597+
val vId = useValueDeclaration(owner)
26012598
if (vId != null) {
26022599
tw.writeVariableBinding(id, vId)
26032600
}

0 commit comments

Comments
 (0)