File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -6574,10 +6574,6 @@ class ArchetypeType : public SubstitutableType,
65746574 // / which the archetype conforms.
65756575 Type getNestedTypeByName (Identifier name);
65766576
6577- // / Retrieve the parent of this archetype, or null if this is a
6578- // / primary archetype.
6579- ArchetypeType *getParent () const ;
6580-
65816577 // / Return the archetype that represents the root generic parameter of its
65826578 // / interface type.
65836579 ArchetypeType *getRoot () const ;
Original file line number Diff line number Diff line change @@ -3381,15 +3381,6 @@ ArchetypeType::ArchetypeType(TypeKind Kind,
33813381 getSubclassTrailingObjects<ProtocolDecl *>());
33823382}
33833383
3384- ArchetypeType *ArchetypeType::getParent () const {
3385- if (auto depMemTy = getInterfaceType ()->getAs <DependentMemberType>()) {
3386- return getGenericEnvironment ()->mapTypeIntoContext (depMemTy->getBase ())
3387- ->castTo <ArchetypeType>();
3388- }
3389-
3390- return nullptr ;
3391- }
3392-
33933384ArchetypeType *ArchetypeType::getRoot () const {
33943385 if (isRoot ()) {
33953386 return const_cast <ArchetypeType *>(this );
You can’t perform that action at this time.
0 commit comments