diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-09-13 18:19:33 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-13 13:54:59 -0700 |
commit | 34286f328ddcfd511a92731f6e57a79778e4add4 (patch) | |
tree | 4240f215e332d29df4d0b276206296159b72b6f8 | |
parent | 936cf453f9f9e338148ff08293340d960612e12d (diff) | |
download | subsurface-34286f328ddcfd511a92731f6e57a79778e4add4.tar.gz |
cleanup: remove unused function DiveComputerNode::changesValues()
This was not used anywhere - let's remove it!
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | core/divecomputer.cpp | 11 | ||||
-rw-r--r-- | core/divecomputer.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/core/divecomputer.cpp b/core/divecomputer.cpp index 369981d07..5b4067b82 100644 --- a/core/divecomputer.cpp +++ b/core/divecomputer.cpp @@ -26,17 +26,6 @@ bool DiveComputerNode::operator<(const DiveComputerNode &a) const return std::tie(model, deviceId) < std::tie(a.model, a.deviceId); } -bool DiveComputerNode::changesValues(const DiveComputerNode &b) const -{ - if (model != b.model || deviceId != b.deviceId) { - qDebug("DiveComputerNodes were not for the same DC"); - return false; - } - return (firmware != b.firmware) || - (serialNumber != b.serialNumber) || - (nickName != b.nickName); -} - const DiveComputerNode *DiveComputerList::getExact(const QString &m, uint32_t d) { auto it = std::lower_bound(dcs.begin(), dcs.end(), DiveComputerNode{m, d, {}, {}, {}}); diff --git a/core/divecomputer.h b/core/divecomputer.h index 3b3e7d1b5..d1ea62b9b 100644 --- a/core/divecomputer.h +++ b/core/divecomputer.h @@ -11,7 +11,6 @@ public: bool operator==(const DiveComputerNode &a) const; bool operator!=(const DiveComputerNode &a) const; bool operator<(const DiveComputerNode &a) const; - bool changesValues(const DiveComputerNode &b) const; void showchanges(const QString &n, const QString &s, const QString &f) const; QString model; uint32_t deviceId; |