mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove PluginInterface::GetLowercasedName()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user