Revision
3763
Author
lsansonetti@apple.com
Date
2010-03-13 01:07:51 -0800 (Sat, 13 Mar 2010)

Log Message

get rid of #hash since the super class defines it

Modified Paths

Diff

Modified: MacRuby/trunk/string.c (3762 => 3763)


--- MacRuby/trunk/string.c	2010-03-13 08:37:11 UTC (rev 3762)
+++ MacRuby/trunk/string.c	2010-03-13 09:07:51 UTC (rev 3763)
@@ -5047,19 +5047,6 @@
 }
 
 /*
- * call-seq:
- *    str.hash   => fixnum
- *
- * Return a hash based on the string's length and content.
- */
-
-static VALUE
-rstr_hash(VALUE str, SEL sel)
-{
-    return LONG2NUM(rb_str_hash(str));
-}
-
-/*
  *  call-seq:
  *     str.partition(sep)              => [head, sep, tail]
  *  
@@ -5364,7 +5351,6 @@
     rb_objc_define_method(rb_cRubyString, "tr_s", rstr_tr_s, 2);
     rb_objc_define_method(rb_cRubyString, "tr_s!", rstr_tr_s_bang, 2);
     rb_objc_define_method(rb_cRubyString, "sum", rstr_sum, -1);
-    rb_objc_define_method(rb_cRubyString, "hash", rstr_hash, 0);
     rb_objc_define_method(rb_cRubyString, "partition", rstr_partition, 1);
     rb_objc_define_method(rb_cRubyString, "rpartition", rstr_rpartition, 1);
     rb_objc_define_method(rb_cRubyString, "crypt", rstr_crypt, 1);