File tree Expand file tree Collapse file tree 2 files changed +0
-40
lines changed Expand file tree Collapse file tree 2 files changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -1713,38 +1713,6 @@ Constraint *ConstraintSystem::getUnboundBindOverloadDisjunction(
1713
1713
return nullptr ;
1714
1714
}
1715
1715
1716
- // / solely resolved by an overload set.
1717
- SmallVector<OverloadChoice, 2 > ConstraintSystem::getUnboundBindOverloads (
1718
- TypeVariableType *tyvar) {
1719
- // Always work on the representation.
1720
- tyvar = getRepresentative (tyvar);
1721
-
1722
- SmallVector<OverloadChoice, 2 > choices;
1723
-
1724
- auto disjunction = getUnboundBindOverloadDisjunction (tyvar);
1725
- if (!disjunction) return choices;
1726
-
1727
- for (auto constraint : disjunction->getNestedConstraints ()) {
1728
- // We must have bind-overload constraints.
1729
- if (constraint->getKind () != ConstraintKind::BindOverload) {
1730
- choices.clear ();
1731
- return choices;
1732
- }
1733
-
1734
- // We must be binding the type variable (or a type variable equivalent to
1735
- // it).
1736
- auto boundTypeVar = constraint->getFirstType ()->getAs <TypeVariableType>();
1737
- if (!boundTypeVar || getRepresentative (boundTypeVar) != tyvar) {
1738
- choices.clear ();
1739
- return choices;
1740
- }
1741
-
1742
- choices.push_back (constraint->getOverloadChoice ());
1743
- }
1744
-
1745
- return choices;
1746
- }
1747
-
1748
1716
// Find a disjunction associated with an ApplicableFunction constraint
1749
1717
// where we have some information about all of the types of in the
1750
1718
// function application (even if we only know something about what the
Original file line number Diff line number Diff line change @@ -3176,14 +3176,6 @@ class ConstraintSystem {
3176
3176
unsigned *numOptionalUnwraps = nullptr );
3177
3177
3178
3178
private:
3179
- // / Given a type variable that might represent an overload set, retrieve
3180
- // /
3181
- // / \returns the set of overload choices to which this type variable
3182
- // / could be bound, or an empty vector if the type variable is not
3183
- // / solely resolved by an overload set.
3184
- SmallVector<OverloadChoice, 2 > getUnboundBindOverloads (
3185
- TypeVariableType *tyvar);
3186
-
3187
3179
// / Solve the system of constraints after it has already been
3188
3180
// / simplified.
3189
3181
// /
You can’t perform that action at this time.
0 commit comments