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,
6574
6574
// / which the archetype conforms.
6575
6575
Type getNestedTypeByName (Identifier name);
6576
6576
6577
- // / Retrieve the parent of this archetype, or null if this is a
6578
- // / primary archetype.
6579
- ArchetypeType *getParent () const ;
6580
-
6581
6577
// / Return the archetype that represents the root generic parameter of its
6582
6578
// / interface type.
6583
6579
ArchetypeType *getRoot () const ;
Original file line number Diff line number Diff line change @@ -3381,15 +3381,6 @@ ArchetypeType::ArchetypeType(TypeKind Kind,
3381
3381
getSubclassTrailingObjects<ProtocolDecl *>());
3382
3382
}
3383
3383
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
-
3393
3384
ArchetypeType *ArchetypeType::getRoot () const {
3394
3385
if (isRoot ()) {
3395
3386
return const_cast <ArchetypeType *>(this );
You can’t perform that action at this time.
0 commit comments