From 1748c422ba585b61f7adb7aed9290e2d2e1d742a Mon Sep 17 00:00:00 2001 From: Srikanth Sankaran <131454720+srikanth-sankaran@users.noreply.github.com> Date: Mon, 23 Sep 2024 17:02:51 +0530 Subject: [PATCH] Eliminate dead code (#2997) --- .../eclipse/jdt/internal/compiler/ast/SwitchStatement.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/SwitchStatement.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/SwitchStatement.java index 615eaf0a83a..fdd30bbc2cf 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/SwitchStatement.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/SwitchStatement.java @@ -868,10 +868,6 @@ public void generateCode(BlockScope currentScope, CodeStream codeStream) { if (this.preSwitchInitStateIndex != -1) { codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSwitchInitStateIndex); } - } else if (statement instanceof CaseStatement) { - caseStatement = (CaseStatement) statement; - caseStatement.typeSwitchIndex = typeSwitchIndex; - typeSwitchIndex += caseStatement.constantExpressions.length; } } statementGenerateCode(currentScope, codeStream, statement);