Minor. Removed TypeParameterDescriptor#getLowerBounds

This commit is contained in:
Stanislav Erokhin
2016-01-22 16:07:29 +03:00
parent 9a41e07ac0
commit f710ba88f8
9 changed files with 4 additions and 26 deletions
@@ -72,7 +72,6 @@ class FuzzyType(
private fun MutableSet<TypeParameterDescriptor>.addUsedTypeParameters(type: KotlinType) {
val typeParameter = type.constructor.declarationDescriptor as? TypeParameterDescriptor
if (typeParameter != null && add(typeParameter)) {
typeParameter.lowerBounds.forEach { addUsedTypeParameters(it) }
typeParameter.upperBounds.forEach { addUsedTypeParameters(it) }
}
@@ -621,7 +621,6 @@ class KotlinPsiUnifier(
desc2: TypeParameterDescriptor
): Status {
if (desc1.variance != desc2.variance) return UNMATCHED
if (!matchTypes(desc1.lowerBounds, desc2.lowerBounds)) return UNMATCHED
if (!matchTypes(desc1.upperBounds, desc2.upperBounds)) return UNMATCHED
return MATCHED
}