@@ -70,34 +70,13 @@ static void emitDistributedIfRemoteBranch(SILGenFunction &SGF,
7070 B.createCondBranch (Loc, isRemoteResultUnwrapped, isRemoteBB, isLocalBB);
7171}
7272
73- static AbstractFunctionDecl *lookupActorTransportResolveFunc (ASTContext &C) {
74- auto transportDecl = C.getActorTransportDecl ();
75-
76- for (auto decl : transportDecl->lookupDirect (DeclName (C.Id_resolve )))
77- if (auto funcDecl = dyn_cast<AbstractFunctionDecl>(decl))
78- return funcDecl;
79-
80- llvm_unreachable (" Missing ActorTransport.resolve function" );
81- }
82-
8373static VarDecl *lookupActorTransportProperty (ASTContext &C, ClassDecl *cd,
8474 SILValue selfValue) {
8575 auto transportVarDeclRefs = cd->lookupDirect (C.Id_actorTransport );
8676 assert (transportVarDeclRefs.size () == 1 );
8777 return dyn_cast<VarDecl>(transportVarDeclRefs.front ());
8878}
8979
90- static EnumElementDecl *lookupEnumCase (ASTContext &C, EnumDecl *target,
91- Identifier identifier) {
92- auto elementDecls = target->lookupDirect (DeclName (identifier));
93- if (elementDecls.empty ())
94- return nullptr ;
95-
96- auto *elementDecl = elementDecls.front ();
97-
98- return dyn_cast<EnumElementDecl>(elementDecl);
99- }
100-
10180/* *****************************************************************************/
10281/* ***************** DISTRIBUTED ACTOR STORAGE INITIALIZATION ******************/
10382/* *****************************************************************************/
@@ -814,7 +793,6 @@ void SILGenFunction::emitDistributedActor_resignAddress(
814793void SILGenFunction::emitDistributedActorClassMemberDestruction (
815794 SILLocation cleanupLoc, ManagedValue selfValue, ClassDecl *cd,
816795 SILBasicBlock *normalMemberDestroyBB, SILBasicBlock *finishBB) {
817- ASTContext &ctx = getASTContext ();
818796 auto selfTy = cd->getDeclaredInterfaceType ();
819797
820798 Scope scope (Cleanups, CleanupLocation (cleanupLoc));
0 commit comments