summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'class.c')
-rw-r--r--class.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/class.c b/class.c
index 2d05183..a7fbf7a 100644
--- a/class.c
+++ b/class.c
@@ -6,7 +6,7 @@
$Date: 1995/01/12 08:54:44 $
created at: Tue Aug 10 15:05:44 JST 1993
- Copyright (C) 1994 Yukihiro Matsumoto
+ Copyright (C) 1995 Yukihiro Matsumoto
************************************************/
@@ -203,7 +203,7 @@ rb_include_module(class, module)
Check_Type(module, T_MODULE);
if (BUILTIN_TYPE(class) == T_CLASS) {
- rb_clear_cache2(class);
+ rb_clear_cache(class);
}
while (module) {
@@ -224,24 +224,6 @@ rb_include_module(class, module)
}
void
-rb_add_method(class, mid, node, noex)
- struct RClass *class;
- ID mid;
- NODE *node;
- int noex;
-{
- NODE *body;
-
- if (class == Qnil) class = (struct RClass*)C_Object;
- if (st_lookup(class->m_tbl, mid, &body)) {
- Warning("redefine %s", rb_id2name(mid));
- rb_clear_cache(body);
- }
- body = NEW_METHOD(node, noex);
- st_insert(class->m_tbl, mid, body);
-}
-
-void
rb_define_method(class, name, func, argc)
struct RClass *class;
char *name;