From 03013f35a6d931df4b59bd6578f012a9271b186c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 Oct 2023 11:22:59 +0200 Subject: [PATCH] FocusManager::IsPanelTitleVisible is dead ever since commit df2c41859287282501c8ebd7b3c67465455a457c Author: Noel Grandin Date: Sat Sep 23 21:01:50 2023 +0200 MoveFocusInsideDeckTitle is dead Change-Id: I641622453b35526c7654c84d25d9d7c873249b43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157817 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/sfx2/sidebar/FocusManager.hxx | 1 - sfx2/source/sidebar/FocusManager.cxx | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/include/sfx2/sidebar/FocusManager.hxx b/include/sfx2/sidebar/FocusManager.hxx index 4cb9394d28cd..6eaa877b4dca 100644 --- a/include/sfx2/sidebar/FocusManager.hxx +++ b/include/sfx2/sidebar/FocusManager.hxx @@ -107,7 +107,6 @@ private: void FocusDeckTitle(); bool IsDeckTitleVisible() const; - bool IsPanelTitleVisible(const sal_Int32 nPanelIndex) const; /** Set the focus to the title bar of the panel or, if the title bar is not visible, directly to the panel. diff --git a/sfx2/source/sidebar/FocusManager.cxx b/sfx2/source/sidebar/FocusManager.cxx index 416b6d39ce6b..e86de2b7de6a 100644 --- a/sfx2/source/sidebar/FocusManager.cxx +++ b/sfx2/source/sidebar/FocusManager.cxx @@ -193,17 +193,6 @@ bool FocusManager::IsDeckTitleVisible() const return mpDeckTitleBar != nullptr && mpDeckTitleBar->GetVisible(); } -bool FocusManager::IsPanelTitleVisible (const sal_Int32 nPanelIndex) const -{ - if (nPanelIndex<0 || o3tl::make_unsigned(nPanelIndex)>=maPanels.size()) - return false; - - TitleBar* pTitleBar = maPanels[nPanelIndex]->GetTitleBar(); - if (!pTitleBar) - return false; - return pTitleBar->GetVisible(); -} - void FocusManager::FocusPanel ( const sal_Int32 nPanelIndex, const bool bFallbackToDeckTitle)