Removed unnecessary duplicate code

`rb_equal` may be inlined in `case_equal` and actually same code
is generated twice.
This commit is contained in:
Nobuyoshi Nakada 2020-05-06 09:43:49 +09:00
parent e79e5e0b40
commit b0498caa7e
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -141,12 +141,9 @@ rb_obj_setup(VALUE obj, VALUE klass, VALUE type)
* Same as \c Object#===, case equality. * Same as \c Object#===, case equality.
*++ *++
*/ */
static VALUE #define case_equal rb_equal
case_equal(VALUE obj1, VALUE obj2) {
/* The default implementation of #=== is /* The default implementation of #=== is
* to call #== with the rb_equal() optimization. */ * to call #== with the rb_equal() optimization. */
return rb_equal(obj1, obj2);
}
/*! /*!
* This function is an optimized version of calling #==. * This function is an optimized version of calling #==.