Cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4296 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -47,12 +47,7 @@ public class Name extends Object
|
||||
// from interface Hashable
|
||||
public function hashCode () :int
|
||||
{
|
||||
var norm :String = getNormal();
|
||||
var hash :int = 0;
|
||||
for (var ii :int = 0; ii < norm.length; ii++) {
|
||||
hash = (hash << 1) ^ int(norm.charCodeAt(ii));
|
||||
}
|
||||
return hash;
|
||||
return StringUtil.hashCode(getNormal());
|
||||
}
|
||||
|
||||
// from interface Comparable
|
||||
|
||||
Reference in New Issue
Block a user