@@ -185,38 +185,36 @@ class ProtocolConformanceRef {
185
185
ProtocolDecl *getProtocol () const ;
186
186
187
187
// / Apply a substitution to the conforming type.
188
- ProtocolConformanceRef subst (Type origType, SubstitutionMap subMap,
188
+ ProtocolConformanceRef subst (SubstitutionMap subMap,
189
189
SubstOptions options = std::nullopt ) const ;
190
190
191
191
// / Apply a substitution to the conforming type.
192
- ProtocolConformanceRef subst (Type origType, TypeSubstitutionFn subs,
192
+ ProtocolConformanceRef subst (TypeSubstitutionFn subs,
193
193
LookupConformanceFn conformances,
194
194
SubstOptions options = std::nullopt ) const ;
195
195
196
196
// / Apply a substitution to the conforming type.
197
197
// /
198
198
// / This function should generally not be used outside of the substitution
199
199
// / subsystem.
200
- ProtocolConformanceRef subst (Type origType,
201
- InFlightSubstitution &IFS) const ;
200
+ ProtocolConformanceRef subst (InFlightSubstitution &IFS) const ;
202
201
203
202
// / Map contextual types to interface types in the conformance.
204
203
ProtocolConformanceRef mapConformanceOutOfContext () const ;
205
204
206
205
// / Look up the type witness for an associated type declaration in this
207
206
// / conformance.
208
- Type getTypeWitness (Type origType, AssociatedTypeDecl *assocType,
207
+ Type getTypeWitness (AssociatedTypeDecl *assocType,
209
208
SubstOptions options = std::nullopt ) const ;
210
209
211
210
// / Given a dependent type (expressed in terms of this conformance's
212
211
// / protocol), follow it from the conforming type.
213
- Type getAssociatedType (Type origType, Type dependentType) const ;
212
+ Type getAssociatedType (Type dependentType) const ;
214
213
215
214
// / Given a dependent type (expressed in terms of this conformance's
216
215
// / protocol) and conformance, follow it from the conforming type.
217
216
ProtocolConformanceRef
218
- getAssociatedConformance (Type origType, Type dependentType,
219
- ProtocolDecl *requirement) const ;
217
+ getAssociatedConformance (Type dependentType, ProtocolDecl *requirement) const ;
220
218
221
219
SWIFT_DEBUG_DUMP;
222
220
void dump (llvm::raw_ostream &out, unsigned indent = 0 ,
@@ -235,15 +233,15 @@ class ProtocolConformanceRef {
235
233
return llvm::hash_value (conformance.Union .getOpaqueValue ());
236
234
}
237
235
238
- Type getTypeWitnessByName (Type type, Identifier name) const ;
236
+ Type getTypeWitnessByName (Identifier name) const ;
239
237
240
238
// / Find a particular named function witness for a type that conforms to
241
239
// / the given protocol.
242
240
// /
243
241
// / \param type The conforming type.
244
242
// /
245
243
// / \param name The name of the requirement.
246
- ConcreteDeclRef getWitnessByName (Type type, DeclName name) const ;
244
+ ConcreteDeclRef getWitnessByName (DeclName name) const ;
247
245
248
246
// / Determine whether this conformance is canonical.
249
247
bool isCanonical () const ;
0 commit comments