From 7aca64bfca4b9937369a271da8ed5f9445bb4bad Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 5 Oct 2020 21:28:26 +0200 Subject: cleanup: remove device::operator!=() This was not used. Moreover, mark device::operator==() for removal. This is used for detecting changes in the DiveComputerModel. This can be removed once that is integrated into the undo system. Signed-off-by: Berthold Stoeger --- core/device.cpp | 5 ----- core/device.h | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'core') 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 #include 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; -- cgit v1.2.3-70-g09d2