Skip to content

Commit 5d49b3b

Browse files
committed
Minor cleanumps
1 parent cd48cd6 commit 5d49b3b

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

lib/AST/NameLookup.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -645,27 +645,6 @@ SelfBounds swift::getSelfBoundsFromWhereClause(
645645
SelfBoundsFromWhereClauseRequest{decl}, {});
646646
}
647647

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-
669648
TinyPtrVector<TypeDecl *>
670649
TypeDeclsFromWhereClauseRequest::evaluate(Evaluator &evaluator,
671650
ExtensionDecl *ext) const {

lib/AST/UnqualifiedLookup.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ static DeclVisibilityKind getLocalDeclVisibilityKind(const ASTScope *scope) {
8383
llvm_unreachable("Unhandled ASTScopeKind in switch.");
8484
}
8585

86-
// TODO: change name when UnqualifiedLookup is adopted to
87-
// populatePlacesToSearchFromContext
8886
static void populateLookupDeclsFromContext(
8987
DeclContext *dc, SmallVectorImpl<NominalTypeDecl *> &lookupDecls) {
9088
auto nominal = dc->getSelfNominalTypeDecl();

0 commit comments

Comments
 (0)