From a606147d8d4c402d44e665f523efceadee45ed26 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 22 Aug 2013 14:28:56 +0200 Subject: remove dead code inside #ifdef SV_HAS_RIDERBITMAPS 'git blame' says this code was introduced in 2000 as part of the initial commit. Change-Id: Ide84afd53277926da6b04bf4f74f6dea5f9974a7 --- sfx2/source/dialog/tabdlg.cxx | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 3dc385cbd057..d99259317213 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -754,14 +754,6 @@ void SfxTabDialog::AddTabPage( sal_uInt16 nId, const OUString &rRiderText, sal_B AddTabPage( nId, rRiderText, 0, 0, bItemsOnDemand, nPos ); } -#ifdef SV_HAS_RIDERBITMAPS - -void SfxTabDialog::AddTabPage( sal_uInt16 nId, const Bitmap &rRiderBitmap, sal_Bool bItemsOnDemand, sal_uInt16 nPos ) -{ - AddTabPage( nId, rRiderBitmap, 0, 0, bItemsOnDemand, nPos ); -} - -#endif // ----------------------------------------------------------------------- @@ -853,34 +845,6 @@ void SfxTabDialog::AddTabPage new Data_Impl( nId, pCreateFunc, pRangesFunc, bItemsOnDemand ) ); } -// ----------------------------------------------------------------------- -#ifdef SV_HAS_RIDERBITMAPS - -void SfxTabDialog::AddTabPage - -/* [Description] - - Add a page to the dialog. The riders bitmap is passed on, the page has no - counterpart in the TabControl in the resource of the dialogue. -*/ - -( - sal_uInt16 nId, - const Bitmap &rRiderBitmap, - CreateTabPage pCreateFunc, - GetTabPageRanges pRangesFunc, - sal_Bool bItemsOnDemand, - sal_uInt16 nPos -) -{ - DBG_ASSERT( TAB_PAGE_NOTFOUND == m_pTabCtrl->GetPagePos( nId ), - "Duplicate Page-Ids in the Tabpage" ); - m_pTabCtrl->InsertPage( nId, rRiderBitmap, nPos ); - pImpl->aData.push_back( - new Data_Impl( nId, pCreateFunc, pRangesFunc, bItemsOnDemand ) ); -} -#endif - // ----------------------------------------------------------------------- void SfxTabDialog::RemoveTabPage( sal_uInt16 nId ) -- cgit