Remove PluginInterface::GetLowercasedName()

This commit is contained in:
Oliver Hamlet
2018-10-20 12:48:21 +01:00
parent afc476133e
commit 5b70a92542
-23
View File
@@ -45,12 +45,6 @@ public:
*/
virtual std::string GetName() const = 0;
/**
* Get the plugin's filename in lowercase characters.
* @return The lowercased plugin filename.
*/
virtual std::string GetLowercasedName() const = 0;
/**
* Get the plugin's version number from its description field.
*
@@ -117,21 +111,4 @@ public:
};
}
namespace std {
/**
* A specialisation of std::hash for loot::PluginInterface.
*/
template<>
struct hash<loot::PluginInterface> {
/**
* Calculate a hash value for an object of a class that implements
* loot::PluginInterface.
* @return The hash generated from the plugin's lowercased filename.
*/
size_t operator()(const loot::PluginInterface& plugin) const {
return hash<string>()(plugin.GetLowercasedName());
}
};
}
#endif