Remove PluginMetadata::operator== and != for std::string

This commit is contained in:
Oliver Hamlet
2020-07-11 19:14:06 +01:00
parent 84286e0d5f
commit c9ce0f96d0
2 changed files with 0 additions and 23 deletions
-15
View File
@@ -250,21 +250,6 @@ public:
* otherwise.
*/
LOOT_API bool operator!=(const PluginMetadata& rhs) const;
/**
* Check if object's name value is equal to the given string.
* @returns True if the plugin name is case-insensitively equal to the given
* string, false otherwise.
*/
LOOT_API bool operator==(const std::string& rhs) const;
/**
* Check if object's name value is not equal to the given string.
* @returns True if the plugin name is not case-insensitively equal to the
* given string, false otherwise.
*/
LOOT_API bool operator!=(const std::string& rhs) const;
private:
std::string name_;
std::optional<std::string> group_;
-8
View File
@@ -215,12 +215,4 @@ bool PluginMetadata::operator==(const PluginMetadata& rhs) const {
bool PluginMetadata::operator!=(const PluginMetadata& rhs) const {
return !(*this == rhs);
}
bool PluginMetadata::operator==(const std::string& rhs) const {
return *this == PluginMetadata(rhs);
}
bool PluginMetadata::operator!=(const std::string& rhs) const {
return !(*this == rhs);
}
}