mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 06:53:25 +00:00
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:
parent
936cf453f9
commit
34286f328d
2 changed files with 0 additions and 12 deletions
|
@ -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, {}, {}, {}});
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue