Skip to content

Commit 142b726

Browse files
authored
Merge pull request #34487 from bnbarham/benb/remove-unused-code
[Parse] Remove unused declaration and diagnostic message
2 parents d92f1d5 + eff5fc9 commit 142b726

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

include/swift/AST/DiagnosticsParse.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,9 +1568,6 @@ ERROR(attr_specialize_unknown_parameter_name,none,
15681568
ERROR(attr_specialize_expected_bool_value,none,
15691569
"expected a boolean true or false value in '_specialize' attribute", ())
15701570

1571-
WARNING(attr_specialize_export_true_no_op,none,
1572-
"'exported: true' has no effect in '_specialize' attribute", ())
1573-
15741571
ERROR(attr_specialize_missing_parameter_label_or_where_clause,none,
15751572
"expected a parameter label or a where clause in '_specialize' attribute", ())
15761573

lib/Parse/ParseDecl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ bool Parser::parseSpecializeAttributeArguments(
624624
ParamLabel);
625625
}
626626
if (ParamLabel == "exported") {
627-
auto trueLoc = Tok.getLoc();
628627
bool isTrue = consumeIf(tok::kw_true);
629628
bool isFalse = consumeIf(tok::kw_false);
630629
if (!isTrue && !isFalse) {

0 commit comments

Comments
 (0)