[FIR] Remove unused declarations

This commit is contained in:
Ivan Kochurkin
2023-07-05 11:33:50 +02:00
committed by Space Team
parent 6156609617
commit 43b76f3c24
40 changed files with 14 additions and 397 deletions
@@ -50,8 +50,7 @@ class NamedArgumentNotAllowed(
class ArgumentPassedTwice(
override val argument: FirExpression,
val valueParameter: FirValueParameter,
val firstOccurrence: ResolvedCallArgument
val valueParameter: FirValueParameter
) : InapplicableArgumentDiagnostic()
class VarargArgumentOutsideParentheses(
@@ -72,9 +71,7 @@ class NameNotFound(
) : ResolutionDiagnostic(INAPPLICABLE_ARGUMENTS_MAPPING_ERROR)
class NameForAmbiguousParameter(
val argument: FirNamedArgumentExpression,
val matchedParameter: FirValueParameter,
val anotherParameter: FirValueParameter
val argument: FirNamedArgumentExpression
) : ResolutionDiagnostic(INAPPLICABLE_ARGUMENTS_MAPPING_ERROR)
object InapplicableCandidate : ResolutionDiagnostic(INAPPLICABLE)
@@ -102,9 +102,6 @@ abstract class LogicSystem(private val context: ConeInferenceContext) {
flow.assignmentIndex[variable] = index
}
fun isSameValueIn(a: PersistentFlow, b: MutableFlow, variable: RealVariable): Boolean =
a.assignmentIndex[variable] == b.assignmentIndex[variable]
fun isSameValueIn(a: PersistentFlow, b: PersistentFlow, variable: RealVariable): Boolean =
a.assignmentIndex[variable] == b.assignmentIndex[variable]
@@ -22,7 +22,6 @@ fun <T> stackOf(vararg values: T): Stack<T> = StackImpl(*values)
val Stack<*>.isEmpty: Boolean get() = size == 0
val Stack<*>.isNotEmpty: Boolean get() = size != 0
fun <T> Stack<T>.topOrNull(): T? = if (size == 0) null else top()
fun <T> Stack<T>.popOrNull(): T? = if (size == 0) null else pop()
private class StackImpl<T>(vararg values: T) : Stack<T>() {
private val stack = mutableListOf(*values)