summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-06 15:32:09 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-06 15:32:09 +0000
commitcd3bc6fd5cef2963b694669b141a4e39a772e413 (patch)
treeeb7f72cd8fb3c8ce05d6818207cd89a6e511d4fc /class.c
parentec5ff1197a9644c161b3baf6980d48b42926adbc (diff)
* class.c (rb_include_module): remove unnecessary check.
[ruby-talk:218402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/class.c b/class.c
index 798eceb..80dc9e4 100644
--- a/class.c
+++ b/class.c
@@ -379,9 +379,6 @@ rb_include_module(klass, module)
rb_secure(4);
}
- if (NIL_P(module)) return;
- if (klass == module) return;
-
if (TYPE(module) != T_MODULE) {
Check_Type(module, T_MODULE);
}