summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-08 09:39:01 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-08 09:39:01 +0000
commitec01271caed8c23b347b7d4a8f7f0eec41f86ffc (patch)
tree4334dda61c23619b3007791669744eed9c59f350 /node.c
parent380c84ea26a73f59985a765c8e6fdd748cb7bc70 (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.c11
1 files changed, 0 insertions, 11 deletions
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);
- }
- }
-}