From dd9dc0936b25c527d9d0bbdb10bd5da9a8086466 Mon Sep 17 00:00:00 2001 From: Konrad Malawski Date: Fri, 5 Sep 2025 08:26:23 +0900 Subject: [PATCH] [Distributed] We're currently not using this isDistributedThunk func --- include/swift/AST/Decl.h | 7 ------- lib/AST/DistributedDecl.cpp | 7 ------- 2 files changed, 14 deletions(-) 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);