From 0d957a91baa061742a2b41bc899d875263d90ff2 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 12 Oct 2018 12:54:21 +0000 Subject: [PATCH] Removed unreachable code * node.c (rb_ast_dispose): since `ast->node_buffer` is freed in `rb_ast_free()`, it should be always NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.c | 1 - 1 file changed, 1 deletion(-) diff --git a/node.c b/node.c index 1911b8929b..d81a7319d3 100644 --- a/node.c +++ b/node.c @@ -1139,7 +1139,6 @@ void 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