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 | da28e65c2c97ed0859e34703cff01558e12777a8 (patch) | |
tree | 7b0a4c0ddebc91d95e349f4a9aa298eabb624a96 /class.c | |
parent | f121cf75f0b5b8f590bfcb3a8f114377787c9198 (diff) | |
download | ruby-da28e65c2c97ed0859e34703cff01558e12777a8.tar.gz ruby-da28e65c2c97ed0859e34703cff01558e12777a8.tar.xz ruby-da28e65c2c97ed0859e34703cff01558e12777a8.zip |
* 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: http://svn.ruby-lang.org/repos/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>. |