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)