diff options
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/variable.c b/variable.c index 1c7a2601e0..656497e742 100644 --- a/variable.c +++ b/variable.c @@ -1411,20 +1411,6 @@ rb_define_global_const(name, val) rb_define_const(rb_cObject, name, val); } -VALUE -rb_cvar_singleton(obj) - VALUE obj; -{ - switch (TYPE(obj)) { - case T_MODULE: - case T_CLASS: - return obj; - default: - break; - } - return CLASS_OF(obj); -} - static VALUE original_module(c) VALUE c; @@ -1613,10 +1599,6 @@ rb_mod_class_variables(obj) { VALUE ary = rb_ary_new(); - if (FL_TEST(obj, FL_SINGLETON)) { - obj = rb_cvar_singleton(rb_iv_get(obj, "__attached__")); - } - for (;;) { if (RCLASS(obj)->iv_tbl) { st_foreach(RCLASS(obj)->iv_tbl, cv_i, ary); |