[Distributed] We're currently not using this isDistributedThunk func

This commit is contained in:
Konrad Malawski
2025-09-05 08:26:23 +09:00
parent 9524c10a43
commit 7713dec67d
2 changed files with 0 additions and 14 deletions

View File

@@ -3004,13 +3004,6 @@ public:
/// `distributed var get { }` accessors.
bool isDistributedGetAccessor() const;
/// Is this a 'distributed thunk'?
///
/// Distributed thunks are synthesized functions which perform the "is remote?"
/// check, before dispatching to a 'system.remoteCall' (if actor was remote).
/// They are always 'async' and 'throws'.
bool isDistributedThunk() const;
bool hasName() const { return bool(Name); }
bool isOperator() const { return Name.isOperator(); }

View File

@@ -1369,13 +1369,6 @@ bool ValueDecl::isDistributedGetAccessor() const {
return false;
}
bool ValueDecl::isDistributedThunk() const {
if (auto func = dyn_cast<AbstractFunctionDecl>(this)) {
return func->isDistributedThunk();
}
return false;
}
ConstructorDecl *
NominalTypeDecl::getDistributedRemoteCallTargetInitFunction() const {
auto mutableThis = const_cast<NominalTypeDecl *>(this);