summaryrefslogtreecommitdiff
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
commitf6fcd8635152dcc05e5439dc89de792db0b9e049 (patch)
tree239be8c51fb7a80773529cda52b1dab894b36520
parent0522cf503c95b0337c1eb50b9fabe284029f0d83 (diff)
* class.c (rb_include_module): remove unnecessary check.
[ruby-talk:218402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--class.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2032f7bde51..720af5015ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * class.c (rb_include_module): remove unnecessary check.
+ [ruby-talk:218402]
+
Fri Oct 6 15:19:59 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/depend: Fix header installation when the build
diff --git a/class.c b/class.c
index 81956e5febc..c204fdd41bb 100644
--- a/class.c
+++ b/class.c
@@ -352,9 +352,6 @@ rb_include_module(VALUE klass, VALUE module)
rb_secure(4);
}
- if (NIL_P(module)) return;
- if (klass == module) return;
-
if (TYPE(module) != T_MODULE) {
Check_Type(module, T_MODULE);
}