Skip to content

Commit

Permalink
Remove dead functions
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Oct 22, 2024
1 parent c515c9e commit 6b88489
Showing 1 changed file with 2 additions and 35 deletions.
37 changes: 2 additions & 35 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,41 +379,6 @@ rb_gc_rebuild_shape(VALUE obj, size_t heap_id)
return (uint32_t)rb_shape_id(new_shape);
}

struct st_table *rb_generic_ivtbl_get(void);

struct st_table *
rb_gc_get_generic_ivar_table(void)
{
return rb_generic_ivtbl_get();
}

struct st_table *
rb_gc_get_frozen_strings_table(void)
{
return rb_vm_fstring_table();
}

extern rb_symbols_t ruby_global_symbols;
#define global_symbols ruby_global_symbols

struct st_table *
rb_gc_get_global_symbols_table(void)
{
return global_symbols.str_sym;
}

struct st_table *
rb_gc_get_overloaded_cme_table(void)
{
return GET_VM()->overloaded_cme_table;
}

struct st_table *
rb_gc_get_ci_table(void)
{
return GET_VM()->ci_table;
}

void rb_vm_update_references(void *ptr);

#define rb_setjmp(env) RUBY_SETJMP(env)
Expand Down Expand Up @@ -3363,6 +3328,8 @@ vm_weak_table_frozen_strings_foreach(st_data_t key, st_data_t value, st_data_t d
return retval;
}

struct st_table *rb_generic_ivtbl_get(void);

void
rb_gc_vm_weak_table_foreach(vm_table_foreach_callback_func callback,
vm_table_update_callback_func update_callback,
Expand Down

0 comments on commit 6b88489

Please sign in to comment.