Skip to content

Commit 4686801

Browse files
committed
Remove the now-unused GenericSignatureBuilder::updateRequirementSource().
1 parent f429712 commit 4686801

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

include/swift/AST/GenericSignatureBuilder.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,6 @@ class GenericSignatureBuilder {
169169
GenericSignatureBuilder(const GenericSignatureBuilder &) = delete;
170170
GenericSignatureBuilder &operator=(const GenericSignatureBuilder &) = delete;
171171

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-
180172
/// Retrieve the constraint source conformance for the superclass constraint
181173
/// of the given potential archetype (if present) to the given protocol.
182174
///

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -814,22 +814,6 @@ bool EquivalenceClass::isConformanceSatisfiedBySuperclass(
814814
return false;
815815
}
816816

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-
833817
const RequirementSource *GenericSignatureBuilder::resolveSuperConformance(
834818
GenericSignatureBuilder::PotentialArchetype *pa,
835819
ProtocolDecl *proto) {

0 commit comments

Comments
 (0)