From 65adbeebd936950a21b6af38dc1f2dc0aaea37d1 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 21 Feb 2024 14:23:40 +0100 Subject: [PATCH] Minor: drop commented code part --- .../calls/CreateFreshTypeVariableSubstitutorStage.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CreateFreshTypeVariableSubstitutorStage.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CreateFreshTypeVariableSubstitutorStage.kt index bda80f98d82..6a30160a385 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CreateFreshTypeVariableSubstitutorStage.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CreateFreshTypeVariableSubstitutorStage.kt @@ -52,16 +52,6 @@ internal object CreateFreshTypeVariableSubstitutorStage : ResolutionStage() { val typeParameter = typeParameters[index] val freshVariable = freshVariables[index] -// val knownTypeArgument = knownTypeParametersResultingSubstitutor?.substitute(typeParameter.defaultType) -// if (knownTypeArgument != null) { -// csBuilder.addEqualityConstraint( -// freshVariable.defaultType, -// knownTypeArgument.unwrap(), -// KnownTypeParameterConstraintPosition(knownTypeArgument) -// ) -// continue -// } - when (val typeArgument = candidate.typeArgumentMapping[index]) { is FirTypeProjectionWithVariance -> csBuilder.addEqualityConstraint( freshVariable.defaultType,