@@ -6577,10 +6577,6 @@ class ArchetypeType : public SubstitutableType,
65776577 // / which the archetype conforms.
65786578 Type getNestedTypeByName (Identifier name);
65796579
6580- // / Return the archetype that represents the root generic parameter of its
6581- // / interface type.
6582- ArchetypeType *getRoot () const ;
6583-
65846580 // / Determine whether this is a root archetype within the environment.
65856581 bool isRoot () const ;
65866582
@@ -6761,19 +6757,12 @@ class LocalArchetypeType : public ArchetypeType {
67616757 using ArchetypeType::ArchetypeType;
67626758
67636759public:
6764- LocalArchetypeType *getRoot () const {
6765- return cast<LocalArchetypeType>(ArchetypeType::getRoot ());
6766- }
6767-
67686760 static bool classof (const TypeBase *type) {
67696761 return type->getKind () == TypeKind::OpenedArchetype ||
67706762 type->getKind () == TypeKind::ElementArchetype;
67716763 }
67726764};
67736765BEGIN_CAN_TYPE_WRAPPER (LocalArchetypeType, ArchetypeType)
6774- CanLocalArchetypeType getRoot() const {
6775- return CanLocalArchetypeType (getPointer ()->getRoot ());
6776- }
67776766END_CAN_TYPE_WRAPPER(LocalArchetypeType, ArchetypeType)
67786767
67796768// / An archetype that represents the dynamic type of an opened existential.
@@ -6828,12 +6817,6 @@ class OpenedArchetypeType final : public LocalArchetypeType,
68286817 // / Retrieve the ID number of this opened existential.
68296818 UUID getOpenedExistentialID () const ;
68306819
6831- // / Return the archetype that represents the root generic parameter of its
6832- // / interface type.
6833- OpenedArchetypeType *getRoot () const {
6834- return cast<OpenedArchetypeType>(ArchetypeType::getRoot ());
6835- }
6836-
68376820 static bool classof (const TypeBase *T) {
68386821 return T->getKind () == TypeKind::OpenedArchetype;
68396822 }
@@ -6846,9 +6829,6 @@ class OpenedArchetypeType final : public LocalArchetypeType,
68466829 RecursiveTypeProperties properties);
68476830};
68486831BEGIN_CAN_TYPE_WRAPPER (OpenedArchetypeType, LocalArchetypeType)
6849- CanOpenedArchetypeType getRoot() const {
6850- return CanOpenedArchetypeType (getPointer ()->getRoot ());
6851- }
68526832END_CAN_TYPE_WRAPPER(OpenedArchetypeType, LocalArchetypeType)
68536833
68546834// / A wrapper around a shape type to use in ArchetypeTrailingObjects
@@ -6916,12 +6896,6 @@ class ElementArchetypeType final : public LocalArchetypeType,
69166896 // / Retrieve the ID number of this opened element.
69176897 UUID getOpenedElementID () const ;
69186898
6919- // / Return the archetype that represents the root generic parameter of its
6920- // / interface type.
6921- ElementArchetypeType *getRoot () const {
6922- return cast<ElementArchetypeType>(ArchetypeType::getRoot ());
6923- }
6924-
69256899 static bool classof (const TypeBase *T) {
69266900 return T->getKind () == TypeKind::ElementArchetype;
69276901 }
@@ -6933,9 +6907,6 @@ class ElementArchetypeType final : public LocalArchetypeType,
69336907 LayoutConstraint layout);
69346908};
69356909BEGIN_CAN_TYPE_WRAPPER (ElementArchetypeType, LocalArchetypeType)
6936- CanElementArchetypeType getRoot() const {
6937- return CanElementArchetypeType (getPointer ()->getRoot ());
6938- }
69396910END_CAN_TYPE_WRAPPER(ElementArchetypeType, LocalArchetypeType)
69406911
69416912template<typename Type>
0 commit comments