@@ -70,34 +70,13 @@ static void emitDistributedIfRemoteBranch(SILGenFunction &SGF,
70
70
B.createCondBranch (Loc, isRemoteResultUnwrapped, isRemoteBB, isLocalBB);
71
71
}
72
72
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
-
83
73
static VarDecl *lookupActorTransportProperty (ASTContext &C, ClassDecl *cd,
84
74
SILValue selfValue) {
85
75
auto transportVarDeclRefs = cd->lookupDirect (C.Id_actorTransport );
86
76
assert (transportVarDeclRefs.size () == 1 );
87
77
return dyn_cast<VarDecl>(transportVarDeclRefs.front ());
88
78
}
89
79
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
-
101
80
/* *****************************************************************************/
102
81
/* ***************** DISTRIBUTED ACTOR STORAGE INITIALIZATION ******************/
103
82
/* *****************************************************************************/
@@ -814,7 +793,6 @@ void SILGenFunction::emitDistributedActor_resignAddress(
814
793
void SILGenFunction::emitDistributedActorClassMemberDestruction (
815
794
SILLocation cleanupLoc, ManagedValue selfValue, ClassDecl *cd,
816
795
SILBasicBlock *normalMemberDestroyBB, SILBasicBlock *finishBB) {
817
- ASTContext &ctx = getASTContext ();
818
796
auto selfTy = cd->getDeclaredInterfaceType ();
819
797
820
798
Scope scope (Cleanups, CleanupLocation (cleanupLoc));
0 commit comments