[svn:parrot] r49129 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Sat Sep 18 03:22:55 UTC 2010
Author: chromatic
Date: Sat Sep 18 03:22:55 2010
New Revision: 49129
URL: https://trac.parrot.org/parrot/changeset/49129
Log:
[PMC] Removed Hash PMC's duplicate type check.
parrot_hash_get_bucket() will do this already, so let it.
Modified:
trunk/src/pmc/hash.pmc
Modified: trunk/src/pmc/hash.pmc
==============================================================================
--- trunk/src/pmc/hash.pmc Sat Sep 18 03:22:52 2010 (r49128)
+++ trunk/src/pmc/hash.pmc Sat Sep 18 03:22:55 2010 (r49129)
@@ -766,10 +766,6 @@
if (!hash->entries)
return PMCNULL;
- /* special case the most likely key type, for speed */
- if (hash->key_type != Hash_key_type_STRING)
- key = (STRING *)hash_key_from_string(INTERP, hash, key);
-
b = parrot_hash_get_bucket(INTERP, hash, key);
if (!b)
More information about the parrot-commits
mailing list