Skip to content

Commit 539a5b3

Browse files
committed
[NFC] Remove Redundant Calls to VarDecl::setIntroducer
1 parent f807ef9 commit 539a5b3

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lib/Sema/CodeSynthesisDistributedActor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ static VarDecl *addImplicitDistributedActorIDProperty(
7373
C, StaticSpellingKind::None, propPat, /*InitExpr*/ nullptr,
7474
nominal);
7575

76-
propDecl->setIntroducer(VarDecl::Introducer::Let);
77-
7876
// mark as nonisolated, allowing access to it from everywhere
7977
propDecl->getAttrs().add(
8078
new (C) NonisolatedAttr(/*IsImplicit=*/true));

lib/Sema/DerivedConformanceDistributedActor.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ static ValueDecl *deriveDistributedActor_id(DerivedConformance &derived) {
116116
propertyType, propertyType,
117117
/*isStatic=*/false, /*isFinal=*/true);
118118

119-
propDecl->setIntroducer(VarDecl::Introducer::Let);
120-
121119
// mark as nonisolated, allowing access to it from everywhere
122120
propDecl->getAttrs().add(
123121
new (C) NonisolatedAttr(/*IsImplicit=*/true));
@@ -147,8 +145,6 @@ static ValueDecl *deriveDistributedActor_actorSystem(
147145
propertyType, propertyType,
148146
/*isStatic=*/false, /*isFinal=*/true);
149147

150-
propDecl->setIntroducer(VarDecl::Introducer::Let);
151-
152148
// mark as nonisolated, allowing access to it from everywhere
153149
propDecl->getAttrs().add(
154150
new (C) NonisolatedAttr(/*IsImplicit=*/true));

0 commit comments

Comments
 (0)