Minor. Drop unused addReceiverLabelAlias

This commit is contained in:
Denis.Zharkov
2022-06-01 17:30:38 +03:00
committed by teamcity
parent 166c771e1b
commit 6e6d576a44
@@ -71,16 +71,6 @@ class PersistentImplicitReceiverStack private constructor(
)
}
fun addReceiverLabelAlias(aliasLabel: Name, value: ImplicitReceiverValue<*>): PersistentImplicitReceiverStack {
val receiversPerLabel = receiversPerLabel.put(aliasLabel, value)
return PersistentImplicitReceiverStack(
stack,
receiversPerLabel,
indexesPerSymbol,
originalTypes
)
}
override operator fun get(name: String?): ImplicitReceiverValue<*>? {
if (name == null) return stack.lastOrNull()
return receiversPerLabel[Name.identifier(name)].lastOrNull()