зеркало из https://github.com/github/ruby.git
Remove not used fields from CASE, CASE2, CASE3
This commit is contained in:
Родитель
f14cee39b8
Коммит
5537a41059
3
parse.y
3
parse.y
|
@ -11302,7 +11302,6 @@ rb_node_case_new(struct parser_params *p, NODE *nd_head, NODE *nd_body, const YY
|
|||
rb_node_case_t *n = NODE_NEWNODE(NODE_CASE, rb_node_case_t, loc);
|
||||
n->nd_head = nd_head;
|
||||
n->nd_body = nd_body;
|
||||
n->not_used = 0;
|
||||
|
||||
return n;
|
||||
}
|
||||
|
@ -11313,7 +11312,6 @@ rb_node_case2_new(struct parser_params *p, NODE *nd_body, const YYLTYPE *loc)
|
|||
rb_node_case2_t *n = NODE_NEWNODE(NODE_CASE2, rb_node_case2_t, loc);
|
||||
n->nd_head = 0;
|
||||
n->nd_body = nd_body;
|
||||
n->not_used = 0;
|
||||
|
||||
return n;
|
||||
}
|
||||
|
@ -11324,7 +11322,6 @@ rb_node_case3_new(struct parser_params *p, NODE *nd_head, NODE *nd_body, const Y
|
|||
rb_node_case3_t *n = NODE_NEWNODE(NODE_CASE3, rb_node_case3_t, loc);
|
||||
n->nd_head = nd_head;
|
||||
n->nd_body = nd_body;
|
||||
n->not_used = 0;
|
||||
|
||||
return n;
|
||||
}
|
||||
|
|
|
@ -209,7 +209,6 @@ typedef struct RNode_CASE {
|
|||
|
||||
struct RNode *nd_head;
|
||||
struct RNode *nd_body;
|
||||
VALUE not_used;
|
||||
} rb_node_case_t;
|
||||
|
||||
typedef struct RNode_CASE2 {
|
||||
|
@ -217,7 +216,6 @@ typedef struct RNode_CASE2 {
|
|||
|
||||
struct RNode *nd_head;
|
||||
struct RNode *nd_body;
|
||||
VALUE not_used;
|
||||
} rb_node_case2_t;
|
||||
|
||||
typedef struct RNode_CASE3 {
|
||||
|
@ -225,7 +223,6 @@ typedef struct RNode_CASE3 {
|
|||
|
||||
struct RNode *nd_head;
|
||||
struct RNode *nd_body;
|
||||
VALUE not_used;
|
||||
} rb_node_case3_t;
|
||||
|
||||
typedef struct RNode_WHEN {
|
||||
|
|
Загрузка…
Ссылка в новой задаче