From cad92b4d335782bce1cbd85af0e6af9b79562042 Mon Sep 17 00:00:00 2001 From: "whesse@chromium.org" Date: Fri, 29 Apr 2011 11:25:01 +0000 Subject: [PATCH] Remove unused constructor BinaryOperation(Assignment* compound_assignment). BUG= TEST= Review URL: http://codereview.chromium.org/6880312 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7723 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ast.cc | 9 --------- src/ast.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/src/ast.cc b/src/ast.cc index 79e5f8a..7c29409 100644 --- a/src/ast.cc +++ b/src/ast.cc @@ -337,15 +337,6 @@ bool BinaryOperation::ResultOverwriteAllowed() { } -BinaryOperation::BinaryOperation(Assignment* assignment) { - ASSERT(assignment->is_compound()); - op_ = assignment->binary_op(); - left_ = assignment->target(); - right_ = assignment->value(); - pos_ = assignment->position(); -} - - // ---------------------------------------------------------------------------- // Inlining support diff --git a/src/ast.h b/src/ast.h index 1dabcaa..b98b8e7 100644 --- a/src/ast.h +++ b/src/ast.h @@ -1427,9 +1427,6 @@ class BinaryOperation: public Expression { : AstNode::kNoNumber; } - // Create the binary operation corresponding to a compound assignment. - explicit BinaryOperation(Assignment* assignment); - DECLARE_NODE_TYPE(BinaryOperation) virtual bool IsInlineable() const; -- 2.7.4