Skip to content

Commit 8224335

Browse files
committed
Remove dead find/filter-Constraints functions from the constraint solver
1 parent 02a13f3 commit 8224335

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3939,12 +3939,6 @@ class ConstraintSystem {
39393939
/// due to a change.
39403940
ConstraintList &getActiveConstraints() { return ActiveConstraints; }
39413941

3942-
void findConstraints(SmallVectorImpl<Constraint *> &found,
3943-
llvm::function_ref<bool(const Constraint &)> pred) {
3944-
filterConstraints(ActiveConstraints, pred, found);
3945-
filterConstraints(InactiveConstraints, pred, found);
3946-
}
3947-
39483942
/// Retrieve the representative of the equivalence class containing
39493943
/// this type variable.
39503944
TypeVariableType *getRepresentative(TypeVariableType *typeVar) const {
@@ -4117,16 +4111,6 @@ class ConstraintSystem {
41174111
/// into the worklist.
41184112
void addTypeVariableConstraintsToWorkList(TypeVariableType *typeVar);
41194113

4120-
static void
4121-
filterConstraints(ConstraintList &constraints,
4122-
llvm::function_ref<bool(const Constraint &)> pred,
4123-
SmallVectorImpl<Constraint *> &found) {
4124-
for (auto &constraint : constraints) {
4125-
if (pred(constraint))
4126-
found.push_back(&constraint);
4127-
}
4128-
}
4129-
41304114
public:
41314115

41324116
/// Coerce the given expression to an rvalue, if it isn't already.

0 commit comments

Comments
 (0)