Don't reimplement the clear() method

Much easier and clearer.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-01-29 14:00:19 -08:00
parent 4e40872fc0
commit cd992bd14a
3 changed files with 2 additions and 12 deletions

View file

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