Skip to content

Commit

Permalink
remove unused var 'declaredAsVar' from class InterpreterData
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri authored and gbrail committed Oct 5, 2024
1 parent 292d45e commit cdee6cd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions rhino/src/main/java/org/mozilla/javascript/CodeGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.mozilla.javascript.ast.Scope;
import org.mozilla.javascript.ast.ScriptNode;
import org.mozilla.javascript.ast.TemplateCharacters;
import org.mozilla.javascript.ast.VariableInitializer;

/** Generates bytecode for the Interpreter. */
class CodeGenerator extends Icode {
Expand Down Expand Up @@ -119,8 +118,6 @@ private void generateFunctionICode() {
itsData.isES6Generator = true;
}

itsData.declaredAsVar = (theFunction.getParent() instanceof VariableInitializer);

generateICodeFromTree(theFunction.getLastChild());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ private void init() {

private int icodeHashCode = 0;

/** true if the function has been declared like "var foo = function() {...}" */
boolean declaredAsVar;

/** true if the function has been declared like "!function() {}". */
boolean declaredAsFunctionExpression;

Expand Down

0 comments on commit cdee6cd

Please sign in to comment.