File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -5032,8 +5032,6 @@ class ConstraintSystem {
5032
5032
// / \returns The selected disjunction.
5033
5033
Constraint *selectDisjunction ();
5034
5034
5035
- Constraint *selectApplyDisjunction ();
5036
-
5037
5035
// / Solve the system of constraints generated from provided expression.
5038
5036
// /
5039
5037
// / \param target The target to generate constraints from.
Original file line number Diff line number Diff line change @@ -1929,30 +1929,6 @@ Constraint *ConstraintSystem::getUnboundBindOverloadDisjunction(
1929
1929
return result->first ;
1930
1930
}
1931
1931
1932
- // Find a disjunction associated with an ApplicableFunction constraint
1933
- // where we have some information about all of the types of in the
1934
- // function application (even if we only know something about what the
1935
- // types conform to and not actually a concrete type).
1936
- Constraint *ConstraintSystem::selectApplyDisjunction () {
1937
- for (auto &constraint : InactiveConstraints) {
1938
- if (constraint.getKind () != ConstraintKind::ApplicableFunction)
1939
- continue ;
1940
-
1941
- auto *applicable = &constraint;
1942
- if (haveTypeInformationForAllArguments (
1943
- applicable->getFirstType ()->castTo <FunctionType>())) {
1944
- auto *tyvar = applicable->getSecondType ()->castTo <TypeVariableType>();
1945
-
1946
- // If we have created the disjunction for this apply, find it.
1947
- auto *disjunction = getUnboundBindOverloadDisjunction (tyvar);
1948
- if (disjunction)
1949
- return disjunction;
1950
- }
1951
- }
1952
-
1953
- return nullptr ;
1954
- }
1955
-
1956
1932
static bool isOperatorBindOverload (Constraint *bindOverload) {
1957
1933
if (bindOverload->getKind () != ConstraintKind::BindOverload)
1958
1934
return false ;
You can’t perform that action at this time.
0 commit comments