| Index: src/full-codegen.h
|
| diff --git a/src/full-codegen.h b/src/full-codegen.h
|
| index 84eb02c94c95b86f00200b1f9d3ef2bd16466c60..42f2b2c9233561c7054551b73205b37f97c12eba 100644
|
| --- a/src/full-codegen.h
|
| +++ b/src/full-codegen.h
|
| @@ -589,19 +589,6 @@ class FullCodeGenerator: public AstVisitor {
|
| // is expected in the accumulator.
|
| void EmitAssignment(Expression* expr);
|
|
|
| - // Shall an error be thrown if assignment with 'op' operation is perfomed
|
| - // on this variable in given language mode?
|
| - static bool IsSignallingAssignmentToConst(Variable* var, Token::Value op,
|
| - LanguageMode language_mode) {
|
| - if (var->mode() == CONST) return op != Token::INIT_CONST;
|
| -
|
| - if (var->mode() == CONST_LEGACY) {
|
| - return is_strict(language_mode) && op != Token::INIT_CONST_LEGACY;
|
| - }
|
| -
|
| - return false;
|
| - }
|
| -
|
| // Complete a variable assignment. The right-hand-side value is expected
|
| // in the accumulator.
|
| void EmitVariableAssignment(Variable* var,
|
|
|