diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-11 13:20:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-11 13:20:14 +0000 |
commit | 9bcbd08b0b6aef3fb9305860b5d86b132d85721d (patch) | |
tree | 7b0a4c0ddebc91d95e349f4a9aa298eabb624a96 /class.c | |
parent | ba997e3529e3397dd64557891c06ccb350601d17 (diff) | |
download | ruby-9bcbd08b0b6aef3fb9305860b5d86b132d85721d.tar.gz |
* 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.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -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>. |