diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-08 09:39:01 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-08 09:39:01 +0000 |
commit | ec01271caed8c23b347b7d4a8f7f0eec41f86ffc (patch) | |
tree | 4334dda61c23619b3007791669744eed9c59f350 /node.c | |
parent | 380c84ea26a73f59985a765c8e6fdd748cb7bc70 (diff) |
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
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -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); - } - } -} |