Moved hash function from StringUtils into player, there is no

other use of that function.
This commit is contained in:
hiker
2014-01-23 09:54:48 +11:00
parent 6b27179b96
commit d4b95e81b4
3 changed files with 16 additions and 25 deletions
-13
View File
@@ -665,19 +665,6 @@ namespace StringUtils
return output.str();
} // encodeToHtmlEntities
// ------------------------------------------------------------------------
unsigned int simpleHash(const char* input)
{
int hash = 0;
for (int n=0; input[n] != 0; n++)
{
hash += (hash << (hash & 0xF)) ^ input[n];
}
return hash;
}
// ------------------------------------------------------------------------
/** Converts a version string (in the form of 'X.Y.Za-rcU' into an
* integer number.