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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-10-05 21:28:26 +02:00 committed by Dirk Hohndel
parent 7415824a8c
commit 7aca64bfca
2 changed files with 1 additions and 7 deletions

View file

@ -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);

View file

@ -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;