1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

encoding.c: remove rb_gc_mark_encodings

rb_gc_mark_encodings has been empty for a decade
(since r17875 / 28b216ac45).
Just remove it and its only caller in gc.c

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2018-06-05 22:01:43 +00:00
parent 750f1a3988
commit 4e730838a0
3 changed files with 0 additions and 9 deletions

View file

@ -260,11 +260,6 @@ rb_find_encoding(VALUE enc)
return rb_enc_from_index(idx); return rb_enc_from_index(idx);
} }
void
rb_gc_mark_encodings(void)
{
}
static int static int
enc_table_expand(int newsize) enc_table_expand(int newsize)
{ {

3
gc.c
View file

@ -4850,9 +4850,6 @@ gc_mark_roots(rb_objspace_t *objspace, const char **categoryp)
MARK_CHECKPOINT("machine_context"); MARK_CHECKPOINT("machine_context");
mark_current_machine_context(objspace, ec); mark_current_machine_context(objspace, ec);
MARK_CHECKPOINT("encodings");
rb_gc_mark_encodings();
/* mark protected global variables */ /* mark protected global variables */
MARK_CHECKPOINT("global_list"); MARK_CHECKPOINT("global_list");
for (list = global_list; list; list = list->next) { for (list = global_list; list; list = list->next) {

View file

@ -1189,7 +1189,6 @@ void Init_ext(void);
/* encoding.c */ /* encoding.c */
ID rb_id_encoding(void); ID rb_id_encoding(void);
void rb_gc_mark_encodings(void);
#ifdef RUBY_ENCODING_H #ifdef RUBY_ENCODING_H
rb_encoding *rb_enc_get_from_index(int index); rb_encoding *rb_enc_get_from_index(int index);
rb_encoding *rb_enc_check_str(VALUE str1, VALUE str2); rb_encoding *rb_enc_check_str(VALUE str1, VALUE str2);