Skip to content

Commit e78a7cb

Browse files
committed
[Decl] remove not used and bad-idea isIsolated function
1 parent 9b8d00a commit e78a7cb

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

include/swift/AST/Decl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6414,9 +6414,6 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
64146414
/// A function is concurrent if it has the @Sendable attribute.
64156415
bool isSendable() const;
64166416

6417-
/// Determine if function has 'nonisolated' attribute
6418-
bool isNonisolated() const;
6419-
64206417
/// Returns true if the function is a suitable 'async' context.
64216418
///
64226419
/// Functions that are an 'async' context can make calls to 'async' functions.

lib/AST/Decl.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7781,10 +7781,6 @@ bool AbstractFunctionDecl::isSendable() const {
77817781
return getAttrs().hasAttribute<SendableAttr>();
77827782
}
77837783

7784-
bool AbstractFunctionDecl::isNonisolated() const {
7785-
return getAttrs().hasAttribute<NonisolatedAttr>();
7786-
}
7787-
77887784
bool AbstractFunctionDecl::isBackDeployed() const {
77897785
if (getAttrs().hasAttribute<BackDeployAttr>())
77907786
return true;

0 commit comments

Comments
 (0)