From 1d8b7bc6248931354e9e018296bb1ad1abbae6fd Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 6 Nov 2008 22:18:34 +0000 Subject: * 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 --- string.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'string.c') 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); -- cgit v1.2.3