summaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-01 01:38:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-01 01:38:32 +0000
commit6d031e04fb1ef6fff0d55532f6deb54693d4338b (patch)
treedc4be11a78230ebed5718f2962df76aaeecbb9d4 /variable.c
parent75af8df3f279e5229acff52246aea7a59d660649 (diff)
downloadruby-6d031e04fb1ef6fff0d55532f6deb54693d4338b.tar.gz
ruby-6d031e04fb1ef6fff0d55532f6deb54693d4338b.tar.xz
ruby-6d031e04fb1ef6fff0d55532f6deb54693d4338b.zip
* variable.c (rb_autoload_load): autoloaded constants under a module
belong to the module. [ruby-core:01094], [ruby-dev:20309] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/variable.c b/variable.c
index 4835ab502..11a931fa3 100644
--- a/variable.c
+++ b/variable.c
@@ -1194,17 +1194,7 @@ rb_autoload_load(klass, id)
ID id;
{
VALUE file, value;
- ID tmp = id;
- if (!st_delete(RCLASS(klass)->iv_tbl, &tmp, &value) || value != Qundef) {
- if (klass != rb_cObject)
- rb_name_error(id, "not autoload constant %s::%s",
- RSTRING(rb_class_path(klass))->ptr,
- rb_id2name(id));
- else {
- rb_name_error(id, "not autoload constant %s", rb_id2name(id));
- }
- }
file = autoload_delete(klass, id);
if (NIL_P(file)) {
uninitialized_constant(klass, id);