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>
This commit is contained in:
Berthold Stoeger 2020-09-13 18:19:33 +02:00 committed by Dirk Hohndel
parent 936cf453f9
commit 34286f328d
2 changed files with 0 additions and 12 deletions

View file

@ -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, {}, {}, {}});

View file

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