Skip to content

Commit 0ab9f4f

Browse files
committed
[Distributed] We're currently not using this isDistributedThunk func
1 parent 838bc9e commit 0ab9f4f

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

include/swift/AST/Decl.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3001,13 +3001,6 @@ class ValueDecl : public Decl {
30013001
/// `distributed var get { }` accessors.
30023002
bool isDistributedGetAccessor() const;
30033003

3004-
/// Is this a 'distributed thunk'?
3005-
///
3006-
/// Distributed thunks are synthesized functions which perform the "is remote?"
3007-
/// check, before dispatching to a 'system.remoteCall' (if actor was remote).
3008-
/// They are always 'async' and 'throws'.
3009-
bool isDistributedThunk() const;
3010-
30113004
bool hasName() const { return bool(Name); }
30123005
bool isOperator() const { return Name.isOperator(); }
30133006

lib/AST/DistributedDecl.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,13 +1369,6 @@ bool ValueDecl::isDistributedGetAccessor() const {
13691369
return false;
13701370
}
13711371

1372-
bool ValueDecl::isDistributedThunk() const {
1373-
if (auto func = dyn_cast<AbstractFunctionDecl>(this)) {
1374-
return func->isDistributedThunk();
1375-
}
1376-
return false;
1377-
}
1378-
13791372
ConstructorDecl *
13801373
NominalTypeDecl::getDistributedRemoteCallTargetInitFunction() const {
13811374
auto mutableThis = const_cast<NominalTypeDecl *>(this);

0 commit comments

Comments
 (0)