FIR: Remove unused FirInferenceSession.addErrorCall
This commit is contained in:
committed by
teamcity
parent
11ec23e5dc
commit
8f9fd76254
-5
@@ -38,17 +38,12 @@ abstract class AbstractManyCandidatesInferenceSession(
|
|||||||
partiallyResolvedCalls += call to call.candidate
|
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>) {}
|
override fun registerStubTypes(map: Map<TypeVariableMarker, StubTypeMarker>) {}
|
||||||
|
|
||||||
protected val FirResolvable.candidate: Candidate
|
protected val FirResolvable.candidate: Candidate
|
||||||
get() = candidate()!!
|
get() = candidate()!!
|
||||||
|
|
||||||
override fun clear() {
|
override fun clear() {
|
||||||
errorCalls.clear()
|
|
||||||
partiallyResolvedCalls.clear()
|
partiallyResolvedCalls.clear()
|
||||||
completedCalls.clear()
|
completedCalls.clear()
|
||||||
}
|
}
|
||||||
|
|||||||
-2
@@ -28,7 +28,6 @@ abstract class FirInferenceSession {
|
|||||||
abstract val currentConstraintSystem: ConstraintStorage
|
abstract val currentConstraintSystem: ConstraintStorage
|
||||||
|
|
||||||
abstract fun <T> addPartiallyResolvedCall(call: T) where T : FirResolvable, T : FirStatement
|
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 <T> addCompletedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement
|
||||||
|
|
||||||
abstract fun registerStubTypes(map: Map<TypeVariableMarker, StubTypeMarker>)
|
abstract fun registerStubTypes(map: Map<TypeVariableMarker, StubTypeMarker>)
|
||||||
@@ -57,7 +56,6 @@ abstract class FirStubInferenceSession : FirInferenceSession() {
|
|||||||
get() = ConstraintStorage.Empty
|
get() = ConstraintStorage.Empty
|
||||||
|
|
||||||
override fun <T> addPartiallyResolvedCall(call: T) where T : FirResolvable, T : FirStatement {}
|
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 <T> addCompletedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement {}
|
||||||
|
|
||||||
override fun inferPostponedVariables(
|
override fun inferPostponedVariables(
|
||||||
|
|||||||
Reference in New Issue
Block a user