Skip to content

Commit 9a31ef0

Browse files
committed
[CS] NFC: Remove CTP_ComposedPropertyWrapper
This has been unused since we added a custom `AllowWrappedValueMismatch` fix.
1 parent 6abfea9 commit 9a31ef0

File tree

5 files changed

+0
-8
lines changed

5 files changed

+0
-8
lines changed

include/swift/Sema/ConstraintLocator.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ enum ContextualTypePurpose : uint8_t {
7777
/// to a type of a switch subject or an `Error` type.
7878
CTP_ForEachSequence, ///< Sequence expression associated with `for-in` loop.
7979
CTP_WrappedProperty, ///< Property type expected to match 'wrappedValue' type
80-
CTP_ComposedPropertyWrapper, ///< Composed wrapper type expected to match
81-
///< former 'wrappedValue' type
8280

8381
CTP_SingleValueStmtBranch, ///< The contextual type for a branch in a single
8482
///< value statement expression.

lib/Sema/CSApply.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9616,7 +9616,6 @@ ExprWalker::rewriteTarget(SyntacticElementTarget target) {
96169616
case CTP_SubscriptAssignSource:
96179617
case CTP_Condition:
96189618
case CTP_WrappedProperty:
9619-
case CTP_ComposedPropertyWrapper:
96209619
case CTP_CannotFail:
96219620
case CTP_SingleValueStmtBranch:
96229621
result.setExpr(rewrittenExpr);

lib/Sema/CSDiagnostics.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,6 @@ GenericArgumentsMismatchFailure::getDiagnosticFor(
863863
case CTP_CaseStmt:
864864
case CTP_ThrowStmt:
865865
case CTP_ForEachSequence:
866-
case CTP_ComposedPropertyWrapper:
867866
case CTP_Unused:
868867
case CTP_CannotFail:
869868
case CTP_YieldByReference:
@@ -2965,7 +2964,6 @@ getContextualNilDiagnostic(ContextualTypePurpose CTP) {
29652964
case CTP_ForEachSequence:
29662965
case CTP_YieldByReference:
29672966
case CTP_WrappedProperty:
2968-
case CTP_ComposedPropertyWrapper:
29692967
case CTP_ExprPattern:
29702968
case CTP_SingleValueStmtBranch:
29712969
return std::nullopt;
@@ -3750,7 +3748,6 @@ ContextualFailure::getDiagnosticFor(ContextualTypePurpose context,
37503748

37513749
case CTP_ThrowStmt:
37523750
case CTP_ForEachSequence:
3753-
case CTP_ComposedPropertyWrapper:
37543751
case CTP_Unused:
37553752
case CTP_CannotFail:
37563753
case CTP_YieldByReference:

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16711,7 +16711,6 @@ void ConstraintSystem::addContextualConversionConstraint(
1671116711
case CTP_CoerceOperand:
1671216712
case CTP_SubscriptAssignSource:
1671316713
case CTP_WrappedProperty:
16714-
case CTP_ComposedPropertyWrapper:
1671516714
case CTP_ExprPattern:
1671616715
case CTP_SingleValueStmtBranch:
1671716716
break;

lib/Sema/SyntacticElementTarget.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ bool SyntacticElementTarget::contextualTypeIsOnlyAHint() const {
273273
case CTP_SubscriptAssignSource:
274274
case CTP_Condition:
275275
case CTP_WrappedProperty:
276-
case CTP_ComposedPropertyWrapper:
277276
case CTP_CannotFail:
278277
case CTP_ExprPattern:
279278
case CTP_SingleValueStmtBranch:

0 commit comments

Comments
 (0)