aboutsummaryrefslogtreecommitdiffstats
path: root/dives/TestDiveDM5.xml
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-23 23:32:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-24 10:40:12 -0700
commit17526ded58703064dedebdf53669e12f0ab4f43e (patch)
treeee7f16edfa84884db388f55546ae8b75f2f9ad97 /dives/TestDiveDM5.xml
parent52f93ea32661e25ee55206a1e452ef73a0aff3db (diff)
downloadsubsurface-17526ded58703064dedebdf53669e12f0ab4f43e.tar.gz
cleanup: move clearing of device nodes to clear_dive_file_data()
It makes no sense to keep the device nodes if all the other data is cleared. Let's do this automatically and not explicitly. This ensures that the function is also called on mobile. Currently it was only called on desktop. Weirdly, the parser-tests were expecting that the device nodes were not reset by clear_dive_file_data() and therefore divecomputers were accumulating in the test results. Thus, the additional computers had to be removed from the expected test results. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'dives/TestDiveDM5.xml')
-rw-r--r--dives/TestDiveDM5.xml1
1 files changed, 0 insertions, 1 deletions
diff --git a/dives/TestDiveDM5.xml b/dives/TestDiveDM5.xml
index a18f97578..cee358bf2 100644
--- a/dives/TestDiveDM5.xml
+++ b/dives/TestDiveDM5.xml
@@ -1,7 +1,6 @@
<divelog program='subsurface' version='3'>
<settings>
<divecomputerid model='Vyper Air' deviceid='013749e4' serial='20400612'/>
-<divecomputerid model='Vyper Air' deviceid='ffffffff' serial='20400612'/>
</settings>
<divesites>
</divesites>