@@ -417,8 +417,6 @@ class BindingSet {
417
417
!Defaults.empty ();
418
418
}
419
419
420
- LiteralBindingKind getLiteralKind () const ;
421
-
422
420
ArrayRef<Constraint *> getConformanceRequirements () const {
423
421
return Info.Protocols ;
424
422
}
@@ -459,33 +457,10 @@ class BindingSet {
459
457
460
458
LiteralBindingKind getLiteralKind () const ;
461
459
462
- void addDefault (Constraint *constraint);
463
-
464
- void addLiteral (Constraint *constraint);
465
-
466
- // / Add a potential binding to the list of bindings,
467
- // / coalescing supertype bounds when we are able to compute the meet.
468
- void addPotentialBinding (PotentialBinding binding, bool allowJoinMeet = true );
469
-
470
- // / Check if this binding is viable for inclusion in the set.
471
- bool isViable (PotentialBinding &binding) const ;
472
-
473
- bool isGenericParameter () const ;
474
-
475
- bool isSubtypeOf (TypeVariableType *typeVar) const {
476
- auto result = SubtypeOf.find (typeVar);
477
- if (result == SubtypeOf.end ())
478
- return false ;
479
-
480
- auto *constraint = result->second ;
481
- return constraint->getKind () == ConstraintKind::Subtype;
482
- }
483
-
484
460
// / Check if this binding is favored over a disjunction e.g.
485
461
// / if it has only concrete types or would resolve a closure.
486
462
bool favoredOverDisjunction (Constraint *disjunction) const ;
487
463
488
- private:
489
464
// / Detect `subtype` relationship between two type variables and
490
465
// / attempt to infer supertype bindings transitively e.g.
491
466
// /
@@ -510,10 +485,6 @@ class BindingSet {
510
485
void finalize (
511
486
llvm::SmallDenseMap<TypeVariableType *, BindingSet> &inferredBindings);
512
487
513
- // / Check if this binding is favored over a disjunction e.g.
514
- // / if it has only concrete types or would resolve a closure.
515
- bool favoredOverDisjunction (Constraint *disjunction) const ;
516
-
517
488
static BindingScore formBindingScore (const BindingSet &b);
518
489
519
490
// / Compare two sets of bindings, where \c x < y indicates that
0 commit comments