Skip to content

Commit 14bbd27

Browse files
committed
[Distributed] remove a few warnings
1 parent f807ef9 commit 14bbd27

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

lib/SILGen/SILGenDistributed.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ using namespace Lowering;
4343
/// or the subsequent cast to VarDecl failed.
4444
static VarDecl* lookupProperty(NominalTypeDecl *decl, DeclName name) {
4545
assert(decl && "decl was null");
46-
auto &C = decl->getASTContext();
47-
4846
if (auto clazz = dyn_cast<ClassDecl>(decl)) {
4947
auto refs = decl->lookupDirect(name);
5048
if (refs.size() != 1)

lib/Sema/CodeSynthesisDistributedActor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,6 @@ addDistributedActorCodableConformance(
564564
assert(proto->isSpecificProtocol(swift::KnownProtocolKind::Decodable) ||
565565
proto->isSpecificProtocol(swift::KnownProtocolKind::Encodable));
566566
auto &C = actor->getASTContext();
567-
auto DC = actor->getDeclContext();
568567
auto module = actor->getParentModule();
569568

570569
// === Only Distributed actors can gain this implicit conformance

0 commit comments

Comments
 (0)