mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Distributed] We're currently not using this isDistributedThunk func
This commit is contained in:
@@ -3004,13 +3004,6 @@ public:
|
|||||||
/// `distributed var get { }` accessors.
|
/// `distributed var get { }` accessors.
|
||||||
bool isDistributedGetAccessor() const;
|
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 hasName() const { return bool(Name); }
|
||||||
bool isOperator() const { return Name.isOperator(); }
|
bool isOperator() const { return Name.isOperator(); }
|
||||||
|
|
||||||
|
|||||||
@@ -1369,13 +1369,6 @@ bool ValueDecl::isDistributedGetAccessor() const {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ValueDecl::isDistributedThunk() const {
|
|
||||||
if (auto func = dyn_cast<AbstractFunctionDecl>(this)) {
|
|
||||||
return func->isDistributedThunk();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
ConstructorDecl *
|
ConstructorDecl *
|
||||||
NominalTypeDecl::getDistributedRemoteCallTargetInitFunction() const {
|
NominalTypeDecl::getDistributedRemoteCallTargetInitFunction() const {
|
||||||
auto mutableThis = const_cast<NominalTypeDecl *>(this);
|
auto mutableThis = const_cast<NominalTypeDecl *>(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user