Remove variable that is only ever written and never read.

This commit is contained in:
Mads Ager
2022-05-09 15:07:06 +02:00
committed by SvyatoslavScherbina
parent 75bc90f512
commit 3d4e025602
@@ -93,8 +93,6 @@ class FunctionInlining(
private var containerScope: ScopeWithIr? = null private var containerScope: ScopeWithIr? = null
private var deepInline: Boolean = false
override fun lower(irBody: IrBody, container: IrDeclaration) { override fun lower(irBody: IrBody, container: IrDeclaration) {
// TODO container: IrSymbolDeclaration // TODO container: IrSymbolDeclaration
containerScope = createScope(container as IrSymbolOwner) containerScope = createScope(container as IrSymbolOwner)
@@ -171,13 +169,7 @@ class FunctionInlining(
parent = callee.parent parent = callee.parent
if (performRecursiveInline) { if (performRecursiveInline) {
val old = deepInline body?.transformChildrenVoid()
try {
deepInline = true
body?.transformChildrenVoid()
} finally {
deepInline = old
}
valueParameters.forEachIndexed { index, param -> valueParameters.forEachIndexed { index, param ->
if (callSite.getValueArgument(index) == null) { if (callSite.getValueArgument(index) == null) {
// Default values can recursively reference [callee] - transform only needed. // Default values can recursively reference [callee] - transform only needed.