diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 14:51:07 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 14:51:07 +0000 |
commit | 617c53136dd54629acfe96f9dabd46f7ee01381f (patch) | |
tree | 595d834a0a5b8590062f404258710d8d65af2f18 /parse.y | |
parent | dabdec31e4f10a83036cfb368bf3a7d4d20cf2d8 (diff) | |
download | ruby-617c53136dd54629acfe96f9dabd46f7ee01381f.tar.gz |
Do not pass a not used argument
* parse.y (new_op_assign_gen): new_op_assign_gen for
ripper does not need column information.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -600,8 +600,8 @@ static VALUE new_qcall_gen(struct parser_params *parser, VALUE q, VALUE r, VALUE #define new_command(m,a) dispatch2(command, (m), (a)); #define new_nil() Qnil -static VALUE new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs, int column); -#define new_op_assign(lhs, op, rhs, column) new_op_assign_gen(parser, (lhs), (op), (rhs), (column)) +static VALUE new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs); +#define new_op_assign(lhs, op, rhs, column) new_op_assign_gen(parser, (lhs), (op), (rhs)) static VALUE new_attr_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE type, VALUE attr, VALUE op, VALUE rhs); #define new_attr_op_assign(lhs, type, attr, op, rhs, column) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) #define new_const_op_assign(lhs, op, rhs, column) new_op_assign(lhs, op, rhs, column) @@ -10764,7 +10764,7 @@ const_decl_gen(struct parser_params *parser, NODE *path, int column) } #else static VALUE -new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs, int column) +new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs) { return dispatch3(opassign, lhs, op, rhs); } |