diff options
-rw-r--r-- | core/device.cpp | 5 | ||||
-rw-r--r-- | core/device.h | 3 |
2 files changed, 1 insertions, 7 deletions
diff --git a/core/device.cpp b/core/device.cpp index b688e36eb..1c0d6d5c6 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -203,11 +203,6 @@ bool device::operator==(const device &a) const nickName == a.nickName; } -bool device::operator!=(const device &a) const -{ - return !(*this == a); -} - bool device::operator<(const device &a) const { return std::tie(deviceId, model) < std::tie(a.deviceId, a.model); diff --git a/core/device.h b/core/device.h index 22163e56c..c401fd6a0 100644 --- a/core/device.h +++ b/core/device.h @@ -45,8 +45,7 @@ const char *device_get_nickname(const struct device *dev); #include <string> #include <vector> struct device { - bool operator==(const device &a) const; - bool operator!=(const device &a) const; + bool operator==(const device &a) const; // TODO: remove, once devices are integrated in the undo system bool operator<(const device &a) const; void showchanges(const std::string &n, const std::string &s, const std::string &f) const; std::string model; |