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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user