[macruby-changes] [3763] MacRuby/trunk/string.c

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 13 01:07:52 PST 2010


Revision: 3763
          http://trac.macosforge.org/projects/ruby/changeset/3763
Author:   lsansonetti at 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:
--------------
    MacRuby/trunk/string.c

Modified: MacRuby/trunk/string.c
===================================================================
--- 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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100313/b40f33fc/attachment.html>


More information about the macruby-changes mailing list