Drop TypeConstructor.getAnnotations(), uninherit TypeConstructor from Annotated

The method was unused on TypeConstructor instances, and almost all
implementations returned EMPTY anyway
This commit is contained in:
Alexander Udalov
2016-10-12 15:04:19 +03:00
parent 6b6ddf5f75
commit cdf6567375
20 changed files with 10 additions and 82 deletions
@@ -89,9 +89,7 @@ class NotFoundClasses(private val storageManager: StorageManager, private val mo
) : ClassDescriptorBase(storageManager, container, name, SourceElement.NO_SOURCE) {
private val typeParameters = createTypeParameters(this, numberOfDeclaredTypeParameters)
private val typeConstructor = ClassTypeConstructorImpl(
this, Annotations.EMPTY, /* isFinal = */ true, typeParameters, setOf(module.builtIns.anyType)
)
private val typeConstructor = ClassTypeConstructorImpl(this, /* isFinal = */ true, typeParameters, setOf(module.builtIns.anyType))
override fun getKind() = ClassKind.CLASS
override fun getModality() = Modality.FINAL
@@ -176,8 +176,6 @@ class DeserializedClassDescriptor(
override fun getDeclarationDescriptor() = this@DeserializedClassDescriptor
override val annotations: Annotations get() = Annotations.EMPTY // TODO
override fun toString() = name.toString()
override val supertypeLoopChecker: SupertypeLoopChecker