IR: Remove some unused IrBuiltIns methods

This commit is contained in:
Ilya Chernikov
2021-07-14 10:33:43 +02:00
committed by TeamCityServer
parent 51dc829aae
commit 02bf745eef
3 changed files with 11 additions and 36 deletions
@@ -530,16 +530,6 @@ class IrBuiltInsOverFir(
private val suspendFunctionNMap = mutableMapOf<Int, IrClass>()
private val kSuspendFunctionNMap = mutableMapOf<Int, IrClass>()
override fun functionN(arity: Int, declarator: SymbolTable.((IrClassSymbol) -> IrClass) -> IrClass): IrClass = functionN(arity)
override fun kFunctionN(arity: Int, declarator: SymbolTable.((IrClassSymbol) -> IrClass) -> IrClass): IrClass = kFunctionN(arity)
override fun suspendFunctionN(arity: Int, declarator: SymbolTable.((IrClassSymbol) -> IrClass) -> IrClass): IrClass =
suspendFunctionN(arity)
override fun kSuspendFunctionN(arity: Int, declarator: SymbolTable.((IrClassSymbol) -> IrClass) -> IrClass): IrClass =
kSuspendFunctionN(arity)
override fun functionN(arity: Int): IrClass = functionNMap.getOrPut(arity) {
referenceClassByClassId(StandardNames.getFunctionClassId(arity))!!.owner
}