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 @@ -770,10 +770,6 @@ class alignas(1 << TypeAlignInBits) TypeBase
770
770
// / Determine whether the type is an opened existential type with Error inside
771
771
bool isOpenedExistentialWithError ();
772
772
773
- // / Retrieve the set of root opened archetypes that occur within this type.
774
- void getRootOpenedExistentials (
775
- SmallVectorImpl<OpenedArchetypeType *> &rootOpenedArchetypes) const ;
776
-
777
773
// / Retrieve the set of type parameter packs that occur within this type.
778
774
void getTypeParameterPacks (SmallVectorImpl<Type> &rootParameterPacks);
779
775
Original file line number Diff line number Diff line change @@ -536,25 +536,6 @@ bool TypeBase::hasOpenedExistentialWithRoot(
536
536
});
537
537
}
538
538
539
- void TypeBase::getRootOpenedExistentials (
540
- SmallVectorImpl<OpenedArchetypeType *> &rootOpenedArchetypes) const {
541
- if (!hasOpenedExistential ())
542
- return ;
543
-
544
- SmallPtrSet<OpenedArchetypeType *, 4 > known;
545
- getCanonicalType ().findIf ([&](Type type) -> bool {
546
- auto *archetype = dyn_cast<OpenedArchetypeType>(type.getPointer ());
547
- if (!archetype)
548
- return false ;
549
-
550
- auto *root = archetype->getRoot ();
551
- if (known.insert (root).second )
552
- rootOpenedArchetypes.push_back (root);
553
-
554
- return false ;
555
- });
556
- }
557
-
558
539
Type TypeBase::addCurriedSelfType (const DeclContext *dc) {
559
540
if (!dc->isTypeContext ())
560
541
return this ;
You can’t perform that action at this time.
0 commit comments