summaryrefslogtreecommitdiff
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
commit7b6452389d2cce226151fde516667b1ca105b6a8 (patch)
treedc4be11a78230ebed5718f2962df76aaeecbb9d4 /variable.c
parente13e58bef695d094665068e73f322e639505635f (diff)
* variable.c (rb_autoload_load): autoloaded constants under a module
belong to the module. [ruby-core:01094], [ruby-dev:20309] git-svn-id: svn+ssh://ci.ruby-lang.org/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 4835ab5..11a931f 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);