diff --git a/include/swift/AST/Decl.h b/include/swift/AST/Decl.h index b3ccf710ed7e2..bf3794041fd9a 100644 --- a/include/swift/AST/Decl.h +++ b/include/swift/AST/Decl.h @@ -3045,13 +3045,6 @@ class ValueDecl : public Decl { /// `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(); } diff --git a/lib/AST/DistributedDecl.cpp b/lib/AST/DistributedDecl.cpp index b844cde5795a6..3d9cf93799cc5 100644 --- a/lib/AST/DistributedDecl.cpp +++ b/lib/AST/DistributedDecl.cpp @@ -1367,13 +1367,6 @@ bool ValueDecl::isDistributedGetAccessor() const { return false; } -bool ValueDecl::isDistributedThunk() const { - if (auto func = dyn_cast(this)) { - return func->isDistributedThunk(); - } - return false; -} - ConstructorDecl * NominalTypeDecl::getDistributedRemoteCallTargetInitFunction() const { auto mutableThis = const_cast(this);