mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
node_h (NEW_DEFN): remove unused argument
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
43c1eb440a
commit
c515395561
2 changed files with 2 additions and 2 deletions
2
node.h
2
node.h
|
@ -363,7 +363,7 @@ typedef struct RNode {
|
|||
|
||||
#define NEW_NODE(t,a0,a1,a2) rb_node_newnode((t),(VALUE)(a0),(VALUE)(a1),(VALUE)(a2))
|
||||
|
||||
#define NEW_DEFN(i,a,d,p) NEW_NODE(NODE_DEFN,0,i,NEW_SCOPE(a,d))
|
||||
#define NEW_DEFN(i,a,d) NEW_NODE(NODE_DEFN,0,i,NEW_SCOPE(a,d))
|
||||
#define NEW_DEFS(r,i,a,d) NEW_NODE(NODE_DEFS,r,i,NEW_SCOPE(a,d))
|
||||
#define NEW_SCOPE(a,b) NEW_NODE(NODE_SCOPE,local_tbl(),b,a)
|
||||
#define NEW_BLOCK(a) NEW_NODE(NODE_BLOCK,a,0,0)
|
||||
|
|
2
parse.y
2
parse.y
|
@ -3077,7 +3077,7 @@ primary : literal
|
|||
/*%%%*/
|
||||
NODE *body = remove_begin($6);
|
||||
reduce_nodes(&body);
|
||||
$$ = NEW_DEFN($2, $5, body, METHOD_VISI_PRIVATE);
|
||||
$$ = NEW_DEFN($2, $5, body);
|
||||
$$->nd_defn->nd_loc = @$;
|
||||
set_line_body(body, $<num>1);
|
||||
nd_set_line($$, $<num>1);
|
||||
|
|
Loading…
Reference in a new issue