From 17526ded58703064dedebdf53669e12f0ab4f43e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 23 Apr 2020 23:32:42 +0200 Subject: 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 --- dives/DL7.xml | 5 ----- dives/TestDiveDM5.xml | 1 - dives/TestDiveDivelogsDE.xml | 2 -- dives/TestDiveSeabearHUDC.xml | 2 -- dives/TestDiveSeabearNewFormat.xml | 2 -- dives/mergedVyperOstc.xml | 2 -- 6 files changed, 14 deletions(-) (limited to 'dives') diff --git a/dives/DL7.xml b/dives/DL7.xml index 0687afa07..869da0022 100644 --- a/dives/DL7.xml +++ b/dives/DL7.xml @@ -1,10 +1,5 @@ - - - - - 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 @@ - diff --git a/dives/TestDiveDivelogsDE.xml b/dives/TestDiveDivelogsDE.xml index fe56f858f..3baac8869 100644 --- a/dives/TestDiveDivelogsDE.xml +++ b/dives/TestDiveDivelogsDE.xml @@ -1,7 +1,5 @@ - - diff --git a/dives/TestDiveSeabearHUDC.xml b/dives/TestDiveSeabearHUDC.xml index 6c76492e7..0fde14fce 100644 --- a/dives/TestDiveSeabearHUDC.xml +++ b/dives/TestDiveSeabearHUDC.xml @@ -1,7 +1,5 @@ - - diff --git a/dives/TestDiveSeabearNewFormat.xml b/dives/TestDiveSeabearNewFormat.xml index 6c8dd3b66..1647e609d 100644 --- a/dives/TestDiveSeabearNewFormat.xml +++ b/dives/TestDiveSeabearNewFormat.xml @@ -1,7 +1,5 @@ - - diff --git a/dives/mergedVyperOstc.xml b/dives/mergedVyperOstc.xml index d35141a6e..c820fbed7 100644 --- a/dives/mergedVyperOstc.xml +++ b/dives/mergedVyperOstc.xml @@ -1,9 +1,7 @@ - - -- cgit v1.2.3-70-g09d2