summaryrefslogtreecommitdiffstats
path: root/divecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-29 14:00:19 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-29 14:00:19 -0800
commitcd992bd14a292ae7117b40e1c1d6d99660d2e2da (patch)
treef952529a8dbf021912ed33ddc4a1cb4ca163902e /divecomputer.cpp
parent4e40872fc0ec5df8fd24e71e142f79ce5333307e (diff)
downloadsubsurface-cd992bd14a292ae7117b40e1c1d6d99660d2e2da.tar.gz
Don't reimplement the clear() method
Much easier and clearer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divecomputer.cpp')
-rw-r--r--divecomputer.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/divecomputer.cpp b/divecomputer.cpp
index f427bd42c..daea390c2 100644
--- a/divecomputer.cpp
+++ b/divecomputer.cpp
@@ -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);