diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-11 08:41:05 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-11 08:41:05 +0000 |
commit | c5f6d62aa000238d3e8cd1c51521d78d223a4050 (patch) | |
tree | eefb15f32e2aaf809cef025cb6c2f4e5302a673a /string.c | |
parent | 4ba883561141543287ba20da2e6e22258e243346 (diff) | |
download | ruby-c5f6d62aa000238d3e8cd1c51521d78d223a4050.tar.gz ruby-c5f6d62aa000238d3e8cd1c51521d78d223a4050.tar.xz ruby-c5f6d62aa000238d3e8cd1c51521d78d223a4050.zip |
merges r20125 from trunk into ruby_1_9_1.
* string.c (Init_String): remove Symbol#===. [ruby-dev:37026]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20183 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); |