Skip to content

Commit d81a5d6

Browse files
committed
Remove resolveProtocolEnvironment, it should be no more needed
1 parent 7476430 commit d81a5d6

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

include/swift/AST/LazyResolver.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ class LazyResolver {
6060
/// consistency and provides the value a type.
6161
virtual void resolveDeclSignature(ValueDecl *VD) = 0;
6262

63-
/// Resolve the generic environment of the given protocol.
64-
virtual void resolveProtocolEnvironment(ProtocolDecl *proto) = 0;
65-
6663
/// Resolve the type of an extension.
6764
///
6865
/// This can be called to ensure that the members of an extension can be

lib/Sema/TypeCheckType.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3422,15 +3422,6 @@ Type TypeChecker::substMemberTypeWithBase(ModuleDecl *module,
34223422
aliasDecl, baseTy,
34233423
aliasDecl->getASTContext());
34243424
}
3425-
3426-
// FIXME: If this is a protocol typealias and we haven't built the
3427-
// protocol's generic environment yet, do so now, to ensure the
3428-
// typealias's underlying type has fully resolved dependent
3429-
// member types.
3430-
if (auto *protoDecl = dyn_cast<ProtocolDecl>(aliasDecl->getDeclContext())) {
3431-
ASTContext &ctx = protoDecl->getASTContext();
3432-
ctx.getLazyResolver()->resolveProtocolEnvironment(protoDecl);
3433-
}
34343425
}
34353426

34363427
Type resultType;

lib/Sema/TypeChecker.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -999,10 +999,6 @@ class TypeChecker final : public LazyResolver {
999999
validateDecl(VD);
10001000
}
10011001

1002-
virtual void resolveProtocolEnvironment(ProtocolDecl *proto) override {
1003-
validateDecl(proto);
1004-
}
1005-
10061002
virtual void resolveExtension(ExtensionDecl *ext) override {
10071003
validateExtension(ext);
10081004
}

0 commit comments

Comments
 (0)