Skip to content

Commit 6e593f1

Browse files
committed
Sema: Remove some unnecessary code from validateDeclForNameLookup()
1 parent 716ac81 commit 6e593f1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4193,13 +4193,6 @@ void TypeChecker::validateDeclForNameLookup(ValueDecl *D) {
41934193
return;
41944194
proto->computeType();
41954195

4196-
auto *gp = proto->getGenericParams();
4197-
gp->setDepth(proto->getGenericContextDepth());
4198-
4199-
for (auto ATD : proto->getAssociatedTypeMembers()) {
4200-
validateDeclForNameLookup(ATD);
4201-
}
4202-
42034196
// Compute the requirement signature later to avoid circularity.
42044197
DelayedRequirementSignatures.insert(proto);
42054198

0 commit comments

Comments
 (0)