From eff5fc9225c62ec3c278bdd4a0cabfce977e5925 Mon Sep 17 00:00:00 2001 From: Ben Barham Date: Wed, 28 Oct 2020 15:47:29 +1000 Subject: [PATCH] [Parse] Remove unused declaration and diagnostic message --- include/swift/AST/DiagnosticsParse.def | 3 --- lib/Parse/ParseDecl.cpp | 1 - 2 files changed, 4 deletions(-) diff --git a/include/swift/AST/DiagnosticsParse.def b/include/swift/AST/DiagnosticsParse.def index afc99fd256b2b..7a534dadfc1a0 100644 --- a/include/swift/AST/DiagnosticsParse.def +++ b/include/swift/AST/DiagnosticsParse.def @@ -1568,9 +1568,6 @@ ERROR(attr_specialize_unknown_parameter_name,none, ERROR(attr_specialize_expected_bool_value,none, "expected a boolean true or false value in '_specialize' attribute", ()) -WARNING(attr_specialize_export_true_no_op,none, - "'exported: true' has no effect in '_specialize' attribute", ()) - ERROR(attr_specialize_missing_parameter_label_or_where_clause,none, "expected a parameter label or a where clause in '_specialize' attribute", ()) diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 35d585ab8bffb..740edb712d208 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -624,7 +624,6 @@ bool Parser::parseSpecializeAttributeArguments( ParamLabel); } if (ParamLabel == "exported") { - auto trueLoc = Tok.getLoc(); bool isTrue = consumeIf(tok::kw_true); bool isFalse = consumeIf(tok::kw_false); if (!isTrue && !isFalse) {