From e55c740d84cd11813e6d7e5bf7aa0a2f5f9a6784 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 21 Jan 2020 12:24:40 +0100 Subject: diveplanner: call planner model directly for simple variables. Variables without conversion, do not need to pass plannerShared (due to the QML interface). Simple variables do not pass plannerShared, but diveplanner in desktop-widgets and qmlinterface in mobile-widgets call the implementation directly. Signed-off-by: jan Iversen --- tests/testplannershared.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'tests/testplannershared.cpp') diff --git a/tests/testplannershared.cpp b/tests/testplannershared.cpp index f4c4546ee..3131590c5 100644 --- a/tests/testplannershared.cpp +++ b/tests/testplannershared.cpp @@ -87,15 +87,6 @@ void TestPlannerShared::test_gas() qPrefDivePlanner::set_sacfactor(200); QCOMPARE(plannerShared::sacfactor(), 2.0); - plannerShared::set_problemsolvingtime(4); - QCOMPARE(qPrefDivePlanner::problemsolvingtime(), 4); - plannerShared::set_problemsolvingtime(5); - QCOMPARE(qPrefDivePlanner::problemsolvingtime(), 5); - qPrefDivePlanner::set_problemsolvingtime(2); - QCOMPARE(plannerShared::problemsolvingtime(), 2); - qPrefDivePlanner::set_problemsolvingtime(6); - QCOMPARE(plannerShared::problemsolvingtime(), 6); - // Set system to use meters qPrefUnits::set_unit_system(METRIC); -- cgit v1.2.3-70-g09d2