Skip to content

Commit

Permalink
Simplified stringWithHash
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Robinson committed Nov 19, 2008
1 parent fbb3959 commit 3b65f46
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Foundation/CPString.j
Expand Up @@ -90,10 +90,7 @@ var CPStringHashes = new objj_dictionary();
*/
+ (id)stringWithHash:(unsigned)aHash
{
var zeros = "000000",
digits = aHash.toString(16);

return zeros.substring(0, zeros.length - digits.length) + digits;
return sprintf("%06x", aHash);
}

/*!
Expand Down

0 comments on commit 3b65f46

Please sign in to comment.