ruby-changes:43889
From: yui-knk <ko1@a...>
Date: Fri, 19 Aug 2016 00:59:19 +0900 (JST)
Subject: [ruby-changes:43889] yui-knk:r55962 (trunk): * proc.c (mnew_missing): Remove an unused argument.
yui-knk 2016-08-19 00:59:12 +0900 (Fri, 19 Aug 2016) New Revision: 55962 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55962 Log: * proc.c (mnew_missing): Remove an unused argument. After r51126 rid is not used. Modified files: trunk/ChangeLog trunk/proc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 55961) +++ ChangeLog (revision 55962) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Aug 19 01:00:53 2016 Yuichiro Kaneko <yui-knk@r...> + + * proc.c (mnew_missing): Remove an unused argument. + After r51126 rid is not used. + Thu Aug 18 09:26:52 2016 SHIBATA Hiroshi <hsbt@r...> * gems/bundled_gems: bump to test-unit-3.2.1 Index: proc.c =================================================================== --- proc.c (revision 55961) +++ proc.c (revision 55962) @@ -1323,7 +1323,7 @@ respond_to_missing_p(VALUE klass, VALUE https://github.com/ruby/ruby/blob/trunk/proc.c#L1323 static VALUE -mnew_missing(VALUE klass, VALUE obj, ID id, ID rid, VALUE mclass) +mnew_missing(VALUE klass, VALUE obj, ID id, VALUE mclass) { struct METHOD *data; VALUE method = TypedData_Make_Struct(mclass, struct METHOD, &method_data_type, data); @@ -1352,13 +1352,12 @@ mnew_internal(const rb_method_entry_t *m https://github.com/ruby/ruby/blob/trunk/proc.c#L1352 { struct METHOD *data; VALUE method; - ID rid = id; rb_method_visibility_t visi = METHOD_VISI_UNDEF; again: if (UNDEFINED_METHOD_ENTRY_P(me)) { if (respond_to_missing_p(klass, obj, ID2SYM(id), scope)) { - return mnew_missing(klass, obj, id, rid, mclass); + return mnew_missing(klass, obj, id, mclass); } if (!error) return Qnil; rb_print_undef(klass, id, METHOD_VISI_UNDEF); @@ -1639,7 +1638,7 @@ obj_method(VALUE obj, VALUE vid, int sco https://github.com/ruby/ruby/blob/trunk/proc.c#L1638 if (!id) { if (respond_to_missing_p(klass, obj, vid, scope)) { id = rb_intern_str(vid); - return mnew_missing(klass, obj, id, id, mclass); + return mnew_missing(klass, obj, id, mclass); } rb_method_name_error(klass, vid); } @@ -1728,7 +1727,7 @@ rb_obj_singleton_method(VALUE obj, VALUE https://github.com/ruby/ruby/blob/trunk/proc.c#L1727 if (!NIL_P(klass = rb_singleton_class_get(obj)) && respond_to_missing_p(klass, obj, vid, FALSE)) { id = rb_intern_str(vid); - return mnew_missing(klass, obj, id, id, rb_cMethod); + return mnew_missing(klass, obj, id, rb_cMethod); } undef: rb_name_err_raise("undefined singleton method `%1$s' for `%2$s'", -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/