mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Remove unnecessary validation noise
Drop some callers to validateDecl and resolveDeclSignature that did not actually need the interface type.
This commit is contained in:
@@ -1079,11 +1079,6 @@ static void addImplicitConstructorsToClass(ClassDecl *decl, ASTContext &ctx) {
|
||||
? DesignatedInitKind::Chaining
|
||||
: DesignatedInitKind::Stub;
|
||||
|
||||
// We have a designated initializer. Create an override of it.
|
||||
// FIXME: Validation makes sure we get a generic signature here.
|
||||
if (!decl->hasInterfaceType())
|
||||
ctx.getLazyResolver()->resolveDeclSignature(decl);
|
||||
|
||||
if (auto ctor = createDesignatedInitOverride(
|
||||
decl, superclassCtor, kind, ctx)) {
|
||||
decl->addMember(ctor);
|
||||
|
||||
Reference in New Issue
Block a user