[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:
Robert Widmann
2019-09-21 09:53:08 -07:00
parent 7f036f4fe4
commit aad82fd9c5
5 changed files with 1 additions and 30 deletions

View File

@@ -795,16 +795,6 @@ ConformanceLookupTable::getConformance(NominalTypeDecl *nominal,
if (!conformingDC)
return nullptr;
// Everything about this conformance is nailed down, so we can now ensure that
// the extension is fully resolved.
if (auto resolver = nominal->getASTContext().getLazyResolver()) {
if (auto ext = dyn_cast<ExtensionDecl>(conformingDC)) {
resolver->resolveDeclSignature(ext->getExtendedNominal());
} else {
resolver->resolveDeclSignature(cast<NominalTypeDecl>(conformingDC));
}
}
auto *conformingNominal = conformingDC->getSelfNominalTypeDecl();
// Form the conformance.