diff --git a/include/hashtables.h b/include/hashtables.h index 2f52cddfa8..cb4ef65926 100644 --- a/include/hashtables.h +++ b/include/hashtables.h @@ -33,7 +33,7 @@ // First some utility classes and functions /// Equality test for "const char*" type used in very specialized KEYWORD_MAP below -struct iequal_to : std::binary_function< const char*, const char*, bool > +struct iequal_to { bool operator()( const char* x, const char* y ) const { @@ -77,7 +77,7 @@ struct fnv_1a /// Hash function for wxString, counterpart of std::string hash -struct WXSTRING_HASH : std::unary_function +struct WXSTRING_HASH { std::size_t operator()( const wxString& aString ) const { @@ -128,9 +128,5 @@ struct WXSTRING_HASH : std::unary_function */ typedef std::unordered_map< const char*, int, fnv_1a, iequal_to > KEYWORD_MAP; -/// Map a C string to an EDA_RECT. -/// The key is the classname of the derived wxformbuilder dialog. -typedef std::unordered_map< std::string, EDA_RECT > RECT_MAP; - #endif // HASHTABLES_H_