summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-11 13:20:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-11 13:20:14 +0000
commit9bcbd08b0b6aef3fb9305860b5d86b132d85721d (patch)
tree7b0a4c0ddebc91d95e349f4a9aa298eabb624a96 /class.c
parentba997e3529e3397dd64557891c06ccb350601d17 (diff)
* include/ruby/node.h (NOEX_LOCAL): remove unused local visibility.
* class.c (ins_methods_push): ditto. * class.c (rb_class_local_methods): method removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/class.c b/class.c
index ead4d767ae..5bb801d2e0 100644
--- a/class.c
+++ b/class.c
@@ -521,7 +521,6 @@ ins_methods_push(ID name, long type, VALUE ary, long visi)
case NOEX_PRIVATE:
case NOEX_PROTECTED:
case NOEX_PUBLIC:
- case NOEX_LOCAL:
visi = (type == visi);
break;
default:
@@ -559,12 +558,6 @@ ins_methods_pub_i(ID name, long type, VALUE ary)
}
static int
-ins_methods_local_i(ID name, long type, VALUE ary)
-{
- return ins_methods_push(name, type, ary, NOEX_LOCAL);
-}
-
-static int
method_entry(ID key, NODE *body, st_table *list)
{
long type;
@@ -703,19 +696,6 @@ rb_class_public_instance_methods(int argc, VALUE *argv, VALUE mod)
/*
* call-seq:
- * mod.local_methods => array
- *
- * Returns a list of the local methods defined in <i>mod</i>.
- */
-
-VALUE
-rb_class_local_methods(VALUE mod)
-{
- return class_instance_method_list(0, 0, mod, ins_methods_local_i);
-}
-
-/*
- * call-seq:
* obj.singleton_methods(all=true) => array
*
* Returns an array of the names of singleton methods for <i>obj</i>.