diff --git a/ChangeLog b/ChangeLog index 6b8546cedd..28bcd991e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ Fri Nov 7 07:12:06 2008 Nobuyoshi Nakada * thread_pthread.c (thread_timer): uses pthread_cond_timedwait always instead of pthread_kill. +Fri Nov 7 06:58:59 2008 Yukihiro Matsumoto + + * string.c (Init_String): remove Symbol#===. [ruby-dev:37026] + Fri Nov 7 04:02:22 2008 Nobuyoshi Nakada * thread.c (thread_timer): uses timedwait on cygwin. diff --git a/string.c b/string.c index eb4625f495..08f3cdbf5c 100644 --- a/string.c +++ b/string.c @@ -6941,13 +6941,6 @@ sym_match(VALUE sym, VALUE 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 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, "casecmp", sym_casecmp, 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, "slice", sym_aref, -1);