mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Remove ProtocolConformanceRef::getAssociatedType()
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user