Minor: drop 'transformTypeArguments'

This commit is contained in:
Dmitry Petrov
2018-03-27 10:57:14 +03:00
parent 47b3152bd0
commit 3a936c9e27
@@ -27,7 +27,6 @@ import org.jetbrains.kotlin.ir.expressions.impl.*
import org.jetbrains.kotlin.ir.symbols.IrClassifierSymbol
import org.jetbrains.kotlin.ir.symbols.impl.*
import org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid
import java.util.*
inline fun <reified T : IrElement> T.deepCopyOld(): T =
transform(DeepCopyIrTree(), null).patchDeclarationParents() as T
@@ -154,11 +153,6 @@ open class DeepCopyIrTree : IrElementTransformerVoid() {
}
}
@Deprecated("Replace with remapTypeArguments")
protected fun IrMemberAccessExpression.transformTypeArguments(newCallee: CallableDescriptor) {
// Do nothing: assume that type parameters of the newCallee directly correspond to the original type parameters
}
private fun FunctionDescriptor.getTypeParametersToTransform() =
when {
this is PropertyAccessorDescriptor -> correspondingProperty.typeParameters