1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (Init_String): remove Symbol#===. [ruby-dev:37026]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-11-06 22:18:34 +00:00
parent 90c6c35f2e
commit 1d8b7bc624
2 changed files with 4 additions and 8 deletions

View file

@ -3,6 +3,10 @@ Fri Nov 7 07:12:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread_pthread.c (thread_timer): uses pthread_cond_timedwait always * thread_pthread.c (thread_timer): uses pthread_cond_timedwait always
instead of pthread_kill. instead of pthread_kill.
Fri Nov 7 06:58:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (Init_String): remove Symbol#===. [ruby-dev:37026]
Fri Nov 7 04:02:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Nov 7 04:02:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (thread_timer): uses timedwait on cygwin. * thread.c (thread_timer): uses timedwait on cygwin.

View file

@ -6941,13 +6941,6 @@ sym_match(VALUE sym, VALUE other)
return rb_str_match(rb_sym_to_s(sym), other); return rb_str_match(rb_sym_to_s(sym), other);
} }
static VALUE
sym_eqq(VALUE sym, VALUE other)
{
if (sym == other) return Qtrue;
return rb_str_equal(rb_sym_to_s(sym), other);
}
static VALUE static VALUE
sym_aref(int argc, VALUE *argv, VALUE sym) sym_aref(int argc, VALUE *argv, VALUE sym)
{ {
@ -7188,7 +7181,6 @@ Init_String(void)
rb_define_method(rb_cSymbol, "<=>", sym_cmp, 1); rb_define_method(rb_cSymbol, "<=>", sym_cmp, 1);
rb_define_method(rb_cSymbol, "casecmp", sym_casecmp, 1); rb_define_method(rb_cSymbol, "casecmp", sym_casecmp, 1);
rb_define_method(rb_cSymbol, "=~", sym_match, 1); rb_define_method(rb_cSymbol, "=~", sym_match, 1);
rb_define_method(rb_cSymbol, "===", sym_eqq, 1);
rb_define_method(rb_cSymbol, "[]", sym_aref, -1); rb_define_method(rb_cSymbol, "[]", sym_aref, -1);
rb_define_method(rb_cSymbol, "slice", sym_aref, -1); rb_define_method(rb_cSymbol, "slice", sym_aref, -1);