Skip to content

Commit 706348a

Browse files
authored
Merge pull request swiftlang#84118 from ktoso/wip-remove-not-used-func
2 parents 8cc45dd + dd9dc09 commit 706348a

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
@@ -3045,13 +3045,6 @@ class ValueDecl : public Decl {
30453045
/// `distributed var get { }` accessors.
30463046
bool isDistributedGetAccessor() const;
30473047

3048-
/// Is this a 'distributed thunk'?
3049-
///
3050-
/// Distributed thunks are synthesized functions which perform the "is remote?"
3051-
/// check, before dispatching to a 'system.remoteCall' (if actor was remote).
3052-
/// They are always 'async' and 'throws'.
3053-
bool isDistributedThunk() const;
3054-
30553048
bool hasName() const { return bool(Name); }
30563049
bool isOperator() const { return Name.isOperator(); }
30573050

lib/AST/DistributedDecl.cpp

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

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

0 commit comments

Comments
 (0)