File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -783,10 +783,6 @@ class alignas(1 << TypeAlignInBits) TypeBase
783
783
// / Determine whether the type is an opened existential type with Error inside
784
784
bool isOpenedExistentialWithError ();
785
785
786
- // / Retrieve the set of root opened archetypes that occur within this type.
787
- void getRootOpenedExistentials (
788
- SmallVectorImpl<OpenedArchetypeType *> &rootOpenedArchetypes) const ;
789
-
790
786
// / Retrieve the set of type parameter packs that occur within this type.
791
787
void getTypeParameterPacks (SmallVectorImpl<Type> &rootParameterPacks);
792
788
Original file line number Diff line number Diff line change @@ -531,25 +531,6 @@ bool TypeBase::hasLocalArchetypeFromEnvironment(
531
531
});
532
532
}
533
533
534
- void TypeBase::getRootOpenedExistentials (
535
- SmallVectorImpl<OpenedArchetypeType *> &rootOpenedArchetypes) const {
536
- if (!hasOpenedExistential ())
537
- return ;
538
-
539
- SmallPtrSet<OpenedArchetypeType *, 4 > known;
540
- getCanonicalType ().findIf ([&](Type type) -> bool {
541
- auto *archetype = dyn_cast<OpenedArchetypeType>(type.getPointer ());
542
- if (!archetype)
543
- return false ;
544
-
545
- auto *root = archetype->getRoot ();
546
- if (known.insert (root).second )
547
- rootOpenedArchetypes.push_back (root);
548
-
549
- return false ;
550
- });
551
- }
552
-
553
534
Type TypeBase::addCurriedSelfType (const DeclContext *dc) {
554
535
if (!dc->isTypeContext ())
555
536
return this ;
You can’t perform that action at this time.
0 commit comments