Remove useless wxIntegerHash assignment operator

This doesn't seem to be doing anything useful but does result in
-Wdeprecated-copy from clang 10, as normally a custom copy ctor should
be defined as well, if the assignment operator is defined.
This commit is contained in:
Vadim Zeitlin
2021-03-22 18:43:00 +01:00
parent 1cdf59ff92
commit f0398d1267

View File

@@ -507,8 +507,6 @@ public:
size_t operator()( wxLongLong_t x ) const wxNOEXCEPT { return longlongHash(x); } size_t operator()( wxLongLong_t x ) const wxNOEXCEPT { return longlongHash(x); }
size_t operator()( wxULongLong_t x ) const wxNOEXCEPT { return longlongHash(x); } size_t operator()( wxULongLong_t x ) const wxNOEXCEPT { return longlongHash(x); }
#endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG #endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
wxIntegerHash& operator=(const wxIntegerHash&) { return *this; }
}; };
#else // wxNEEDS_WX_HASH_MAP #else // wxNEEDS_WX_HASH_MAP