ruby-changes:52819
From: nobu <ko1@a...>
Date: Fri, 12 Oct 2018 21:54:27 +0900 (JST)
Subject: [ruby-changes:52819] nobu:r65031 (trunk): Removed unreachable code
nobu 2018-10-12 21:54:21 +0900 (Fri, 12 Oct 2018) New Revision: 65031 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65031 Log: Removed unreachable code * node.c (rb_ast_dispose): since `ast->node_buffer` is freed in `rb_ast_free()`, it should be always NULL. Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 65030) +++ node.c (revision 65031) @@ -1139,7 +1139,6 @@ void https://github.com/ruby/ruby/blob/trunk/node.c#L1139 rb_ast_dispose(rb_ast_t *ast) { rb_ast_free(ast); - if (ast->node_buffer) RB_OBJ_WRITE(ast, &ast->node_buffer->mark_ary, Qnil); } void -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/