mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CS] NFC: Remove OverloadChoiceKind::BaseType
This doesn't appear to be used any more.
This commit is contained in:
@@ -1549,7 +1549,6 @@ Type ConstraintSystem::getEffectiveOverloadType(const OverloadChoice &overload,
|
||||
// Declaration choices are handled below.
|
||||
break;
|
||||
|
||||
case OverloadChoiceKind::BaseType:
|
||||
case OverloadChoiceKind::DeclViaBridge:
|
||||
case OverloadChoiceKind::DeclViaDynamic:
|
||||
case OverloadChoiceKind::DeclViaUnwrappedOptional:
|
||||
@@ -1918,7 +1917,6 @@ std::pair<Type, bool> ConstraintSystem::adjustTypeOfOverloadReference(
|
||||
case OverloadChoiceKind::DeclViaBridge:
|
||||
case OverloadChoiceKind::DeclViaUnwrappedOptional:
|
||||
case OverloadChoiceKind::TupleIndex:
|
||||
case OverloadChoiceKind::BaseType:
|
||||
case OverloadChoiceKind::KeyPathApplication:
|
||||
return {refType, bindConstraintCreated};
|
||||
case OverloadChoiceKind::DeclViaDynamic: {
|
||||
@@ -2020,7 +2018,6 @@ void ConstraintSystem::bindOverloadType(
|
||||
case OverloadChoiceKind::DeclViaBridge:
|
||||
case OverloadChoiceKind::DeclViaUnwrappedOptional:
|
||||
case OverloadChoiceKind::TupleIndex:
|
||||
case OverloadChoiceKind::BaseType:
|
||||
case OverloadChoiceKind::KeyPathApplication:
|
||||
case OverloadChoiceKind::DeclViaDynamic:
|
||||
bindTypeOrIUO(openedType);
|
||||
@@ -2272,10 +2269,6 @@ void ConstraintSystem::resolveOverload(ConstraintLocator *locator,
|
||||
break;
|
||||
}
|
||||
|
||||
case OverloadChoiceKind::BaseType:
|
||||
refType = choice.getBaseType();
|
||||
break;
|
||||
|
||||
case OverloadChoiceKind::TupleIndex:
|
||||
if (auto lvalueTy = choice.getBaseType()->getAs<LValueType>()) {
|
||||
// When the base of a tuple lvalue, the member is always an lvalue.
|
||||
@@ -2532,7 +2525,6 @@ DeclName OverloadChoice::getName() const {
|
||||
case OverloadChoiceKind::KeyPathDynamicMemberLookup:
|
||||
return DeclName(DynamicMember.getPointer());
|
||||
|
||||
case OverloadChoiceKind::BaseType:
|
||||
case OverloadChoiceKind::TupleIndex:
|
||||
llvm_unreachable("no name!");
|
||||
}
|
||||
@@ -3246,7 +3238,6 @@ bool ConstraintSystem::diagnoseAmbiguity(ArrayRef<Solution> solutions) {
|
||||
// want them to noise up unrelated subscript diagnostics.
|
||||
break;
|
||||
|
||||
case OverloadChoiceKind::BaseType:
|
||||
case OverloadChoiceKind::TupleIndex:
|
||||
// FIXME: Actually diagnose something here.
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user