mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't reimplement the clear() method
Much easier and clearer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4e40872fc0
commit
cd992bd14a
3 changed files with 2 additions and 12 deletions
|
@ -79,13 +79,6 @@ void DiveComputerList::addDC(const QString &m, uint32_t d, const QString &n, con
|
|||
dcMap.insert(m, newNode);
|
||||
}
|
||||
|
||||
void DiveComputerList::rmDC(const QString &m, uint32_t d)
|
||||
{
|
||||
const DiveComputerNode *existNode = this->getExact(m, d);
|
||||
dcMap.remove(m, *existNode);
|
||||
}
|
||||
|
||||
|
||||
extern "C" void create_device_node(const char *model, uint32_t deviceid, const char *serial, const char *firmware, const char *nickname)
|
||||
{
|
||||
dcList.addDC(model, deviceid, nickname, serial, firmware);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue