mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
7415824a8c
commit
7aca64bfca
2 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue