Skip to content

Commit 88345f9

Browse files
committed
AST: Remove the unused SuppressNoAsyncAvailabilityAttr print option.
1 parent 887bc11 commit 88345f9

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

include/swift/AST/PrintOptions.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,6 @@ struct PrintOptions {
341341
/// Whether to print the internal layout name instead of AnyObject, etc.
342342
bool PrintInternalLayoutName = false;
343343

344-
/// Suppress emitting @available(*, noasync)
345-
bool SuppressNoAsyncAvailabilityAttr = false;
346-
347344
/// Suppress emitting isolated or async deinit, and emit open containing class
348345
/// as public
349346
bool SuppressIsolatedDeinit = false;

lib/AST/Attr.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,8 +1159,6 @@ bool DeclAttribute::printImpl(ASTPrinter &Printer, const PrintOptions &Options,
11591159

11601160
case DeclAttrKind::Available: {
11611161
auto Attr = cast<AvailableAttr>(this);
1162-
if (Options.SuppressNoAsyncAvailabilityAttr && Attr->isNoAsync())
1163-
return false;
11641162
if (Options.printPublicInterface() && Attr->isSPI()) {
11651163
assert(Attr->hasPlatform());
11661164
assert(Attr->Introduced.has_value());

0 commit comments

Comments
 (0)