aboutsummaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-11 11:08:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-11 11:08:02 +0900
commitd83d61c98b2d6d80a0ffc9aa012a40d2dc39f9b3 (patch)
tree038e959ffde4a77e39472d6b76821d06e8d83761 /variable.c
parent2dea81f47728b9a28831dd91fc14dafcc3d29271 (diff)
downloadruby-d83d61c98b2d6d80a0ffc9aa012a40d2dc39f9b3.tar.gz
Removed unused variable
`generic_iv_tbl_compat` has not been utilized since 14d61a94ff01.
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/variable.c b/variable.c
index ed84b85e86..646d60d6eb 100644
--- a/variable.c
+++ b/variable.c
@@ -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 {
@@ -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