Skip to content

Commit fa6ec5a

Browse files
committed
Sema: Fix unused variable warning
1 parent 3229ede commit fa6ec5a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Sema/TypeCheckEffects.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,8 +1182,6 @@ class Classification {
11821182
PotentialEffectReason reason, SourceLoc loc,
11831183
bool skipTypeCheck,
11841184
std::optional<EffectKind> onlyEffect = std::nullopt) {
1185-
ASTContext &ctx = declRef.getDecl()->getASTContext();
1186-
11871185
Classification result;
11881186
bool considerAsync = !onlyEffect || *onlyEffect == EffectKind::Async;
11891187
bool considerThrows = !onlyEffect || *onlyEffect == EffectKind::Throws;

0 commit comments

Comments
 (0)