From 9a8acc6c1a3332f05b5d00fff8beecf8d12dc3af Mon Sep 17 00:00:00 2001 From: davidsastresas Date: Sun, 14 Jan 2024 20:56:10 +0100 Subject: [PATCH] MainRootWindow.qml: remove unused viewSwitch() function --- src/ui/MainRootWindow.qml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/ui/MainRootWindow.qml b/src/ui/MainRootWindow.qml index 93274b3..f3d5dd2 100644 --- a/src/ui/MainRootWindow.qml +++ b/src/ui/MainRootWindow.qml @@ -126,22 +126,6 @@ ApplicationWindow { return _rgPreventViewSwitch[_rgPreventViewSwitch.length - 1] } - function viewSwitch(currentToolbar) { - toolDrawer.visible = false - toolDrawer.toolSource = "" - flightView.visible = false - planView.visible = false - toolbar.currentToolbar = currentToolbar - } - - function showFlyView() { - if (!flightView.visible) { - mainWindow.showPreFlightChecklistIfNeeded() - } - viewSwitch(toolbar.flyViewToolbar) - flightView.visible = true - } - function showPlanView() { viewSwitch(toolbar.planViewToolbar) planView.visible = true