ruby-changes:2189
From: ko1@a...
Date: 11 Oct 2007 22:20:33 +0900
Subject: [ruby-changes:2189] matz - Ruby:r13680 (trunk): * include/ruby/node.h (NOEX_LOCAL): remove unused local visibility.
matz 2007-10-11 22:20:14 +0900 (Thu, 11 Oct 2007) New Revision: 13680 Modified files: trunk/ChangeLog trunk/class.c trunk/include/ruby/intern.h trunk/include/ruby/node.h trunk/object.c Log: * include/ruby/node.h (NOEX_LOCAL): remove unused local visibility. * class.c (ins_methods_push): ditto. * class.c (rb_class_local_methods): method removed. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/class.c?r1=13680&r2=13679 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13680&r2=13679 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/node.h?r1=13680&r2=13679 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/object.c?r1=13680&r2=13679 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/intern.h?r1=13680&r2=13679 Index: include/ruby/intern.h =================================================================== --- include/ruby/intern.h (revision 13679) +++ include/ruby/intern.h (revision 13680) @@ -136,7 +136,6 @@ VALUE rb_class_public_instance_methods(int, VALUE*, VALUE); VALUE rb_class_protected_instance_methods(int, VALUE*, VALUE); VALUE rb_class_private_instance_methods(int, VALUE*, VALUE); -VALUE rb_class_local_methods(VALUE); VALUE rb_obj_singleton_methods(int, VALUE*, VALUE); void rb_define_method_id(VALUE, ID, VALUE (*)(ANYARGS), int); void rb_frozen_class_p(VALUE); Index: include/ruby/node.h =================================================================== --- include/ruby/node.h (revision 13679) +++ include/ruby/node.h (revision 13680) @@ -467,8 +467,7 @@ #define NOEX_NOSUPER 0x01 #define NOEX_PRIVATE 0x02 #define NOEX_PROTECTED 0x04 -#define NOEX_LOCAL 0x08 -#define NOEX_MASK 0x0E /* 1110 */ +#define NOEX_MASK 0x06 /* 1110 */ #define NOEX_UNDEF NOEX_NOSUPER Index: ChangeLog =================================================================== --- ChangeLog (revision 13679) +++ ChangeLog (revision 13680) @@ -1,3 +1,11 @@ +Thu Oct 11 21:10:17 2007 Yukihiro Matsumoto <matz@r...> + + * include/ruby/node.h (NOEX_LOCAL): remove unused local visibility. + + * class.c (ins_methods_push): ditto. + + * class.c (rb_class_local_methods): method removed. + Thu Oct 11 14:29:31 2007 NAKAMURA Usaku <usa@r...> * */Makefile.sub (COMMON_MACROS): workaround for old SDK's bug. Index: object.c =================================================================== --- object.c (revision 13679) +++ object.c (revision 13680) @@ -2436,8 +2436,6 @@ rb_class_protected_instance_methods, -1); /* in class.c */ rb_define_method(rb_cModule, "private_instance_methods", rb_class_private_instance_methods, -1); /* in class.c */ - rb_define_method(rb_cModule, "local_methods", - rb_class_local_methods, 0); /* in class.c */ rb_define_method(rb_cModule, "constants", rb_mod_constants, -1); /* in variable.c */ rb_define_method(rb_cModule, "const_get", rb_mod_const_get, -1); Index: class.c =================================================================== --- class.c (revision 13679) +++ class.c (revision 13680) @@ -521,7 +521,6 @@ case NOEX_PRIVATE: case NOEX_PROTECTED: case NOEX_PUBLIC: - case NOEX_LOCAL: visi = (type == visi); break; default: @@ -559,12 +558,6 @@ } 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 @@ /* * 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>. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml