@@ -185,38 +185,36 @@ class ProtocolConformanceRef {
185185 ProtocolDecl *getProtocol () const ;
186186
187187 // / Apply a substitution to the conforming type.
188- ProtocolConformanceRef subst (Type origType, SubstitutionMap subMap,
188+ ProtocolConformanceRef subst (SubstitutionMap subMap,
189189 SubstOptions options = std::nullopt ) const ;
190190
191191 // / Apply a substitution to the conforming type.
192- ProtocolConformanceRef subst (Type origType, TypeSubstitutionFn subs,
192+ ProtocolConformanceRef subst (TypeSubstitutionFn subs,
193193 LookupConformanceFn conformances,
194194 SubstOptions options = std::nullopt ) const ;
195195
196196 // / Apply a substitution to the conforming type.
197197 // /
198198 // / This function should generally not be used outside of the substitution
199199 // / subsystem.
200- ProtocolConformanceRef subst (Type origType,
201- InFlightSubstitution &IFS) const ;
200+ ProtocolConformanceRef subst (InFlightSubstitution &IFS) const ;
202201
203202 // / Map contextual types to interface types in the conformance.
204203 ProtocolConformanceRef mapConformanceOutOfContext () const ;
205204
206205 // / Look up the type witness for an associated type declaration in this
207206 // / conformance.
208- Type getTypeWitness (Type origType, AssociatedTypeDecl *assocType,
207+ Type getTypeWitness (AssociatedTypeDecl *assocType,
209208 SubstOptions options = std::nullopt ) const ;
210209
211210 // / Given a dependent type (expressed in terms of this conformance's
212211 // / protocol), follow it from the conforming type.
213- Type getAssociatedType (Type origType, Type dependentType) const ;
212+ Type getAssociatedType (Type dependentType) const ;
214213
215214 // / Given a dependent type (expressed in terms of this conformance's
216215 // / protocol) and conformance, follow it from the conforming type.
217216 ProtocolConformanceRef
218- getAssociatedConformance (Type origType, Type dependentType,
219- ProtocolDecl *requirement) const ;
217+ getAssociatedConformance (Type dependentType, ProtocolDecl *requirement) const ;
220218
221219 SWIFT_DEBUG_DUMP;
222220 void dump (llvm::raw_ostream &out, unsigned indent = 0 ,
@@ -235,15 +233,15 @@ class ProtocolConformanceRef {
235233 return llvm::hash_value (conformance.Union .getOpaqueValue ());
236234 }
237235
238- Type getTypeWitnessByName (Type type, Identifier name) const ;
236+ Type getTypeWitnessByName (Identifier name) const ;
239237
240238 // / Find a particular named function witness for a type that conforms to
241239 // / the given protocol.
242240 // /
243241 // / \param type The conforming type.
244242 // /
245243 // / \param name The name of the requirement.
246- ConcreteDeclRef getWitnessByName (Type type, DeclName name) const ;
244+ ConcreteDeclRef getWitnessByName (DeclName name) const ;
247245
248246 // / Determine whether this conformance is canonical.
249247 bool isCanonical () const ;
0 commit comments