[CS] NFC: Remove CTP_ComposedPropertyWrapper

This has been unused since we added a custom `AllowWrappedValueMismatch`
fix.
This commit is contained in:
Hamish Knight
2025-11-16 18:28:56 +00:00
parent 6abfea9312
commit 9a31ef029c
5 changed files with 0 additions and 8 deletions

View File

@@ -77,8 +77,6 @@ enum ContextualTypePurpose : uint8_t {
/// to a type of a switch subject or an `Error` type.
CTP_ForEachSequence, ///< Sequence expression associated with `for-in` loop.
CTP_WrappedProperty, ///< Property type expected to match 'wrappedValue' type
CTP_ComposedPropertyWrapper, ///< Composed wrapper type expected to match
///< former 'wrappedValue' type
CTP_SingleValueStmtBranch, ///< The contextual type for a branch in a single
///< value statement expression.

View File

@@ -9616,7 +9616,6 @@ ExprWalker::rewriteTarget(SyntacticElementTarget target) {
case CTP_SubscriptAssignSource:
case CTP_Condition:
case CTP_WrappedProperty:
case CTP_ComposedPropertyWrapper:
case CTP_CannotFail:
case CTP_SingleValueStmtBranch:
result.setExpr(rewrittenExpr);

View File

@@ -863,7 +863,6 @@ GenericArgumentsMismatchFailure::getDiagnosticFor(
case CTP_CaseStmt:
case CTP_ThrowStmt:
case CTP_ForEachSequence:
case CTP_ComposedPropertyWrapper:
case CTP_Unused:
case CTP_CannotFail:
case CTP_YieldByReference:
@@ -2965,7 +2964,6 @@ getContextualNilDiagnostic(ContextualTypePurpose CTP) {
case CTP_ForEachSequence:
case CTP_YieldByReference:
case CTP_WrappedProperty:
case CTP_ComposedPropertyWrapper:
case CTP_ExprPattern:
case CTP_SingleValueStmtBranch:
return std::nullopt;
@@ -3750,7 +3748,6 @@ ContextualFailure::getDiagnosticFor(ContextualTypePurpose context,
case CTP_ThrowStmt:
case CTP_ForEachSequence:
case CTP_ComposedPropertyWrapper:
case CTP_Unused:
case CTP_CannotFail:
case CTP_YieldByReference:

View File

@@ -16711,7 +16711,6 @@ void ConstraintSystem::addContextualConversionConstraint(
case CTP_CoerceOperand:
case CTP_SubscriptAssignSource:
case CTP_WrappedProperty:
case CTP_ComposedPropertyWrapper:
case CTP_ExprPattern:
case CTP_SingleValueStmtBranch:
break;

View File

@@ -273,7 +273,6 @@ bool SyntacticElementTarget::contextualTypeIsOnlyAHint() const {
case CTP_SubscriptAssignSource:
case CTP_Condition:
case CTP_WrappedProperty:
case CTP_ComposedPropertyWrapper:
case CTP_CannotFail:
case CTP_ExprPattern:
case CTP_SingleValueStmtBranch: