summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-25 03:51:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-25 03:51:23 +0000
commit7ed66b9e1da2b1a364659562ff918afbec005004 (patch)
tree74fe517ce81fe2fccac087b9970e23523517a796 /hash.c
parente13f96f413dc40adaf1104decb10f80ddf636aa3 (diff)
2000-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/hash.c b/hash.c
index bfef46b1ad..2178246662 100644
--- a/hash.c
+++ b/hash.c
@@ -89,23 +89,7 @@ rb_any_hash(a)
break;
case T_STRING:
-#if 0
hval = rb_str_hash(a);
-#else
- {
- register const char *p = RSTRING(a)->ptr;
- register int len = RSTRING(a)->len;
- register unsigned int h = 0, g;
-
- while (len--) {
- h = ( h << 4 ) + *p++;
- if ( g = h & 0xF0000000 )
- h ^= g >> 24;
- h &= ~g;
- }
- hval = h;
- }
-#endif
break;
default: