AST: Remove an overload of GenericSignature::getSubstitutions()

This commit is contained in:
Slava Pestov
2017-04-27 21:02:52 -07:00
parent 946b776e37
commit 3130c3cbd7
8 changed files with 37 additions and 58 deletions

View File

@@ -201,17 +201,6 @@ public:
Optional<ProtocolConformanceRef>
lookupConformance(CanType depTy, ProtocolDecl *proto) const;
using GenericFunction = auto(CanType canType, Type conformingReplacementType,
ProtocolType *conformedProtocol)
->Optional<ProtocolConformanceRef>;
using LookupConformanceFn = llvm::function_ref<GenericFunction>;
/// Build an array of substitutions from an interface type substitution map,
/// using the given function to look up conformances.
void getSubstitutions(TypeSubstitutionFn substitution,
LookupConformanceFn lookupConformance,
SmallVectorImpl<Substitution> &result) const;
/// Build an array of substitutions from an interface type substitution map,
/// using the given function to look up conformances.
void getSubstitutions(const SubstitutionMap &subMap,