From ec01271caed8c23b347b7d4a8f7f0eec41f86ffc Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 8 Jan 2018 09:39:01 +0000 Subject: parse.y: Remove dispose_string I think that recycling the delimiter string objects doesn't pay its complexity. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'node.c') diff --git a/node.c b/node.c index 370e6df5ce..abaaf19c7d 100644 --- a/node.c +++ b/node.c @@ -1136,14 +1136,3 @@ rb_ast_add_mark_object(rb_ast_t *ast, VALUE obj) { rb_ary_push(ast->mark_ary, obj); } - -void -rb_ast_delete_mark_object(rb_ast_t *ast, VALUE obj) -{ - long i; - for (i = 0; i < RARRAY_LEN(ast->mark_ary); i++) { - if (obj == RARRAY_AREF(ast->mark_ary, i)) { - RARRAY_ASET(ast->mark_ary, i, Qnil); - } - } -} -- cgit v1.2.3