FIR: Remove unused FirInferenceSession.addErrorCall

This commit is contained in:
Simon Ogorodnik
2021-11-17 17:38:43 +03:00
committed by teamcity
parent 11ec23e5dc
commit 8f9fd76254
2 changed files with 0 additions and 7 deletions
@@ -38,17 +38,12 @@ abstract class AbstractManyCandidatesInferenceSession(
partiallyResolvedCalls += call to call.candidate
}
final override fun <T> addErrorCall(call: T) where T : FirResolvable, T : FirStatement {
errorCalls += call
}
override fun registerStubTypes(map: Map<TypeVariableMarker, StubTypeMarker>) {}
protected val FirResolvable.candidate: Candidate
get() = candidate()!!
override fun clear() {
errorCalls.clear()
partiallyResolvedCalls.clear()
completedCalls.clear()
}
@@ -28,7 +28,6 @@ abstract class FirInferenceSession {
abstract val currentConstraintSystem: ConstraintStorage
abstract fun <T> addPartiallyResolvedCall(call: T) where T : FirResolvable, T : FirStatement
abstract fun <T> addErrorCall(call: T) where T : FirResolvable, T : FirStatement
abstract fun <T> addCompletedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement
abstract fun registerStubTypes(map: Map<TypeVariableMarker, StubTypeMarker>)
@@ -57,7 +56,6 @@ abstract class FirStubInferenceSession : FirInferenceSession() {
get() = ConstraintStorage.Empty
override fun <T> addPartiallyResolvedCall(call: T) where T : FirResolvable, T : FirStatement {}
override fun <T> addErrorCall(call: T) where T : FirResolvable, T : FirStatement {}
override fun <T> addCompletedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement {}
override fun inferPostponedVariables(