diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-06 22:18:34 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-06 22:18:34 +0000 |
| commit | 98ea943cbb9eb94d258c407e645e784aa3256709 (patch) | |
| tree | 25cbf60da621026d23c2e156ca8f1b88978c75da /string.c | |
| parent | 57ceaa5e0bf920213a5254ad5742722bd550a734 (diff) | |
| download | ruby-98ea943cbb9eb94d258c407e645e784aa3256709.tar.gz ruby-98ea943cbb9eb94d258c407e645e784aa3256709.tar.xz ruby-98ea943cbb9eb94d258c407e645e784aa3256709.zip | |
* string.c (Init_String): remove Symbol#===. [ruby-dev:37026]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -6942,13 +6942,6 @@ sym_match(VALUE sym, VALUE 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) { return rb_str_aref_m(argc, argv, rb_sym_to_s(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); |
