Remove unused hash function

Confirmed by looking at blame that it was meant for something that got dropped
This commit is contained in:
Marek Roszko 2022-08-21 18:29:18 -04:00
parent 6eb6447708
commit 19584cfc2e
1 changed files with 0 additions and 33 deletions

View File

@ -47,21 +47,6 @@ struct iequal_to
/// taken from: http://www.boost.org/doc/libs/1_53_0/libs/unordered/examples/fnv1.hpp
struct fnv_1a
{
/* not used, std::string is too slow:
std::size_t operator()( std::string const& text ) const
{
std::size_t hash = 2166136261u;
for( std::string::const_iterator it = text.begin(), end = text.end();
it != end; ++it )
{
hash ^= *it;
hash *= 16777619;
}
return hash;
}
*/
std::size_t operator()( const char* it ) const
{
std::size_t hash = 2166136261u;
@ -76,24 +61,6 @@ struct fnv_1a
};
/// Hash function for wxString, counterpart of std::string hash
struct WXSTRING_HASH
{
std::size_t operator()( const wxString& aString ) const
{
std::size_t hash = 2166136261u;
for( const wxUniChar c : aString )
{
unsigned ch = static_cast<unsigned>( c );
hash ^= ch;
hash *= 16777619;
}
return hash;
}
};
#ifdef SWIG
/// Declare a std::unordered_map and also the swig %template in unison
#define DECL_HASH_FOR_SWIG( TypeName, KeyType, ValueType ) \