Minor. Drop unused property
This commit is contained in:
-3
@@ -275,9 +275,6 @@ class LazyJavaTypeResolver(
|
||||
override val isTypeVariable: Boolean = lowerBound.getConstructor() == upperBound.getConstructor()
|
||||
&& lowerBound.getConstructor().getDeclarationDescriptor() is TypeParameterDescriptor
|
||||
|
||||
override val typeParameterDescriptor: TypeParameterDescriptor? =
|
||||
if (isTypeVariable) lowerBound.getConstructor().getDeclarationDescriptor() as TypeParameterDescriptor else null
|
||||
|
||||
override fun substitutionResult(replacement: KotlinType): KotlinType {
|
||||
return if (replacement.isFlexible()) replacement
|
||||
else create(replacement, TypeUtils.makeNullable(replacement))
|
||||
|
||||
@@ -66,9 +66,6 @@ fun oneMoreSpecificThanAnother(a: KotlinType, b: KotlinType) =
|
||||
interface CustomTypeVariable : TypeCapability {
|
||||
val isTypeVariable: Boolean
|
||||
|
||||
// If typeParameterDescriptor != null <=> isTypeVariable == true, this is not a type variable
|
||||
val typeParameterDescriptor: TypeParameterDescriptor?
|
||||
|
||||
// Throws an exception when isTypeVariable == false
|
||||
fun substitutionResult(replacement: KotlinType): KotlinType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user