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 @@ -645,27 +645,6 @@ SelfBounds swift::getSelfBoundsFromWhereClause(
645
645
SelfBoundsFromWhereClauseRequest{decl}, {});
646
646
}
647
647
648
- // TODO: change name when UnqualifiedLookup is adopted to
649
- // populatePlacesToSearchFromContext
650
- static void
651
- populateLookupDeclsFromContext (DeclContext *dc,
652
- SmallVectorImpl<NominalTypeDecl *> &lookupDecls) {
653
- auto nominal = dc->getSelfNominalTypeDecl ();
654
- if (!nominal)
655
- return ;
656
-
657
- lookupDecls.push_back (nominal);
658
-
659
- // For a protocol extension, check whether there are additional "Self"
660
- // constraints that can affect name lookup.
661
- if (dc->getExtendedProtocolDecl ()) {
662
- auto ext = cast<ExtensionDecl>(dc);
663
- auto bounds = getSelfBoundsFromWhereClause (ext);
664
- for (auto bound : bounds.decls )
665
- lookupDecls.push_back (bound);
666
- }
667
- }
668
-
669
648
TinyPtrVector<TypeDecl *>
670
649
TypeDeclsFromWhereClauseRequest::evaluate (Evaluator &evaluator,
671
650
ExtensionDecl *ext) const {
Original file line number Diff line number Diff line change @@ -83,8 +83,6 @@ static DeclVisibilityKind getLocalDeclVisibilityKind(const ASTScope *scope) {
83
83
llvm_unreachable (" Unhandled ASTScopeKind in switch." );
84
84
}
85
85
86
- // TODO: change name when UnqualifiedLookup is adopted to
87
- // populatePlacesToSearchFromContext
88
86
static void populateLookupDeclsFromContext (
89
87
DeclContext *dc, SmallVectorImpl<NominalTypeDecl *> &lookupDecls) {
90
88
auto nominal = dc->getSelfNominalTypeDecl ();
You can’t perform that action at this time.
0 commit comments