File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -169,14 +169,6 @@ class GenericSignatureBuilder {
169
169
GenericSignatureBuilder (const GenericSignatureBuilder &) = delete ;
170
170
GenericSignatureBuilder &operator =(const GenericSignatureBuilder &) = delete ;
171
171
172
- // / Update an existing constraint source reference when another constraint
173
- // / source was found to produce the same constraint. Only the better
174
- // / constraint source will be kept.
175
- // /
176
- // / \returns true if the new constraint source was better, false otherwise.
177
- bool updateRequirementSource (const RequirementSource *&existingSource,
178
- const RequirementSource *newSource);
179
-
180
172
// / Retrieve the constraint source conformance for the superclass constraint
181
173
// / of the given potential archetype (if present) to the given protocol.
182
174
// /
Original file line number Diff line number Diff line change @@ -814,22 +814,6 @@ bool EquivalenceClass::isConformanceSatisfiedBySuperclass(
814
814
return false ;
815
815
}
816
816
817
- bool GenericSignatureBuilder::updateRequirementSource (
818
- const RequirementSource *&existingSource,
819
- const RequirementSource *newSource) {
820
- if (int result = newSource->compare (existingSource)) {
821
- if (result < 0 ) {
822
- existingSource = newSource;
823
- return true ;
824
- }
825
-
826
- return false ;
827
- }
828
-
829
- assert (existingSource == newSource && " incomparable requirement sources" );
830
- return false ;
831
- }
832
-
833
817
const RequirementSource *GenericSignatureBuilder::resolveSuperConformance (
834
818
GenericSignatureBuilder::PotentialArchetype *pa,
835
819
ProtocolDecl *proto) {
You can’t perform that action at this time.
0 commit comments