Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
`generic_iv_tbl_compat` has not been utilized since 14d61a9.
  • Loading branch information
nobu committed Feb 11, 2020
1 parent 2dea81f commit d83d61c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions variable.c
Expand Up @@ -44,7 +44,6 @@ static void check_before_mod_set(VALUE, ID, VALUE, const char *);
static void setup_const_entry(rb_const_entry_t *, VALUE, VALUE, rb_const_flag_t);
static VALUE rb_const_search(VALUE klass, ID id, int exclude, int recurse, int visibility);
static st_table *generic_iv_tbl;
static st_table *generic_iv_tbl_compat;

struct ivar_update {
union {
Expand Down Expand Up @@ -1007,13 +1006,6 @@ rb_free_generic_ivar(VALUE obj)

if (st_delete(generic_iv_tbl, &key, (st_data_t *)&ivtbl))
xfree(ivtbl);

if (generic_iv_tbl_compat) {
st_table *tbl;

if (st_delete(generic_iv_tbl_compat, &key, (st_data_t *)&tbl))
st_free_table(tbl);
}
}

RUBY_FUNC_EXPORTED size_t
Expand Down

0 comments on commit d83d61c

Please sign in to comment.