[NFC] clean-up collectExistentialConformances

This commit is contained in:
Kavon Farvardin
2024-01-11 14:52:20 -08:00
parent 8516275bee
commit 30a4740962
2 changed files with 3 additions and 5 deletions

View File

@@ -853,8 +853,10 @@ public:
ProtocolConformanceRef conformsToProtocol(Type sourceTy, ProtocolConformanceRef conformsToProtocol(Type sourceTy,
ProtocolDecl *targetProtocol); ProtocolDecl *targetProtocol);
/// Collect the conformances of \c fromType each of the protocols of an /// Collect the conformances of \c fromType to each of the protocols of an
/// existential type's layout. /// existential type's layout.
///
/// See `TypeChecker::containsProtocol` for details on the boolean arguments.
ArrayRef<ProtocolConformanceRef> ArrayRef<ProtocolConformanceRef>
collectExistentialConformances(CanType fromType, CanType existential, collectExistentialConformances(CanType fromType, CanType existential,
bool skipConditionalRequirements = true, bool skipConditionalRequirements = true,

View File

@@ -345,10 +345,6 @@ private:
CanType existential, CanType existential,
bool skipConditionalRequirements, bool skipConditionalRequirements,
bool allowMissing) const; bool allowMissing) const;
public:
// Caching.
bool isCached() const { return true; }
}; };
/// Determine whether an existential type conforming to this protocol /// Determine whether an existential type conforming to this protocol