From a74e03451fef5ef5a2f93ed75c219438cb683e62 Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Mon, 3 Oct 2022 17:46:07 +0800 Subject: [PATCH] remove unused vars --- src/DockContainerWidget.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index 87c13ca..f97c92e 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1521,11 +1521,7 @@ CDockWidgetSideTab::SideTabBarArea CDockContainerWidget::getDockAreaPosition(CDo // It's bottom if the width is wider than the height, and if it's below 50% of the window const auto dockWidgetFrameGeometry = DockAreaWidget->frameGeometry(); const auto splitterCenter = rootSplitter()->mapToGlobal(rootSplitter()->frameGeometry().center()); - const auto a = dockWidgetFrameGeometry.width(); - const auto b = dockWidgetFrameGeometry.height(); - const auto c = DockAreaWidget->mapToGlobal(dockWidgetFrameGeometry.topLeft()).y(); - const auto d = splitterCenter.y(); - const auto e = CDockManager::testConfigFlag(CDockManager::DockContainerHasBottomSideBar); + if (dockWidgetFrameGeometry.width() > dockWidgetFrameGeometry.height() && DockAreaWidget->mapToGlobal(dockWidgetFrameGeometry.topLeft()).y() > splitterCenter.y() && CDockManager::testConfigFlag(CDockManager::DockContainerHasBottomSideBar))