AST: Remove ProtocolConformanceRef::getAssociatedType()

This commit is contained in:
Slava Pestov
2025-04-03 11:20:12 -04:00
parent 44b73b92b1
commit cea72e35a9
3 changed files with 0 additions and 19 deletions

View File

@@ -210,13 +210,6 @@ Type ProtocolConformanceRef::getTypeWitness(AssociatedTypeDecl *assocType,
return DependentMemberType::get(conformingType, assocType);
}
Type ProtocolConformanceRef::getAssociatedType(Type assocType) const {
if (isInvalid())
return ErrorType::get(assocType->getASTContext());
return assocType.subst(SubstitutionMap::getProtocolSubstitutions(*this));
}
ProtocolConformanceRef
ProtocolConformanceRef::getAssociatedConformance(Type assocType,
ProtocolDecl *protocol) const {