Skip to content

Commit

Permalink
Eliminate dead code (#2997)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-sankaran committed Sep 23, 2024
1 parent 5780a5e commit 1748c42
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1748c42

Please sign in to comment.