Skip to content

Commit 49b33bb

Browse files
authored
[Distributed] Remove unused code from SILGenDistributed (#39052)
1 parent 09ea921 commit 49b33bb

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

lib/SILGen/SILGenDistributed.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
8373
static 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(
814793
void 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

Comments
 (0)