summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-13 09:02:15 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-13 09:02:15 +0000
commitef846841510da3c1f3dad51890c36dbc9f9d7941 (patch)
tree127cefc7690503f9b59b36b51e23e7a876a84f46 /variable.c
parent2a7c4526f262d69440b5395786082e02b2ce1871 (diff)
* parse.y (assignable): should emit CVASGN within the method
body. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/variable.c b/variable.c
index 76bc8311a8..44ce2a29e1 100644
--- a/variable.c
+++ b/variable.c
@@ -1357,20 +1357,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);
-}
-
void
rb_cvar_set(klass, id, val)
VALUE klass;
@@ -1509,10 +1495,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);