IR: remove unused functions
This commit is contained in:
-6
@@ -18,7 +18,6 @@ package org.jetbrains.kotlin.backend.common
|
|||||||
|
|
||||||
import org.jetbrains.kotlin.ir.IrElement
|
import org.jetbrains.kotlin.ir.IrElement
|
||||||
import org.jetbrains.kotlin.ir.IrStatement
|
import org.jetbrains.kotlin.ir.IrStatement
|
||||||
import org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI
|
|
||||||
import org.jetbrains.kotlin.ir.builders.Scope
|
import org.jetbrains.kotlin.ir.builders.Scope
|
||||||
import org.jetbrains.kotlin.ir.declarations.*
|
import org.jetbrains.kotlin.ir.declarations.*
|
||||||
import org.jetbrains.kotlin.ir.symbols.IrClassSymbol
|
import org.jetbrains.kotlin.ir.symbols.IrClassSymbol
|
||||||
@@ -104,11 +103,6 @@ abstract class IrElementTransformerVoidWithContext : IrElementTransformerVoid()
|
|||||||
protected val allScopes get() = scopeStack
|
protected val allScopes get() = scopeStack
|
||||||
protected val currentDeclarationParent get() = scopeStack.lastOrNull { it.irElement is IrDeclarationParent }?.irElement as? IrDeclarationParent
|
protected val currentDeclarationParent get() = scopeStack.lastOrNull { it.irElement is IrDeclarationParent }?.irElement as? IrDeclarationParent
|
||||||
|
|
||||||
@ObsoleteDescriptorBasedAPI
|
|
||||||
fun printScopeStack() {
|
|
||||||
scopeStack.forEach { println(it.scope.scopeOwner) }
|
|
||||||
}
|
|
||||||
|
|
||||||
open fun visitFileNew(declaration: IrFile): IrFile {
|
open fun visitFileNew(declaration: IrFile): IrFile {
|
||||||
return super.visitFile(declaration)
|
return super.visitFile(declaration)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -730,10 +730,6 @@ class RenderIrElementVisitor(private val normalizeNames: Boolean = false) : IrEl
|
|||||||
private val descriptorRendererForErrorDeclarations = DescriptorRenderer.ONLY_NAMES_WITH_SHORT_TYPES
|
private val descriptorRendererForErrorDeclarations = DescriptorRenderer.ONLY_NAMES_WITH_SHORT_TYPES
|
||||||
}
|
}
|
||||||
|
|
||||||
@ObsoleteDescriptorBasedAPI
|
|
||||||
internal fun IrDeclaration.name(): String =
|
|
||||||
descriptor.name.toString()
|
|
||||||
|
|
||||||
internal fun DescriptorRenderer.renderDescriptor(descriptor: DeclarationDescriptor): String =
|
internal fun DescriptorRenderer.renderDescriptor(descriptor: DeclarationDescriptor): String =
|
||||||
if (descriptor is ReceiverParameterDescriptor)
|
if (descriptor is ReceiverParameterDescriptor)
|
||||||
"this@${descriptor.containingDeclaration.name}: ${descriptor.type}"
|
"this@${descriptor.containingDeclaration.name}: ${descriptor.type}"
|
||||||
|
|||||||
Reference in New Issue
Block a user