Skip to content

Commit 5c609f2

Browse files
committed
Fix unused code warning.
1 parent af67204 commit 5c609f2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Sema/CSApply.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4482,9 +4482,6 @@ namespace {
44824482
/// Diagnose an optional injection that is probably not what the
44834483
/// user wanted, because it comes from a forced downcast.
44844484
void diagnoseOptionalInjection(InjectIntoOptionalExpr *injection) {
4485-
// Don't diagnose when we're injecting into
4486-
auto toOptionalType = cs.getType(injection);
4487-
44884485
// Check whether we have a forced downcast.
44894486
auto &tc = cs.getTypeChecker();
44904487
auto *cast = findForcedDowncast(tc.Context, injection->getSubExpr());

0 commit comments

Comments
 (0)