From 908794d36f489c60835bfa8a17ac6bd9c256c7df Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Fri, 12 Oct 2012 16:12:35 +0200 Subject: remove unused function Change-Id: I2caa76105053c57b48d721d1ae04485c94149fcc --- sw/source/core/unocore/unoidx.cxx | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'sw') diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index 7a43ea1a3df8..951f3678d1d2 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -1342,25 +1342,6 @@ SwXDocumentIndex::getAnchor() throw (uno::RuntimeException) return xRet; } -void lcl_RemoveChildSections(SwSectionFmt& rParentFmt) -{ - SwSections aTmpArr; - SwDoc *const pDoc = rParentFmt.GetDoc(); - const sal_uInt16 nCnt = rParentFmt.GetChildSections(aTmpArr, SORTSECT_POS); - if( nCnt ) - { - for( sal_uInt16 n = 0; n < nCnt; ++n ) - { - if( aTmpArr[n]->GetFmt()->IsInNodesArr() ) - { - SwSectionFmt* pFmt = aTmpArr[n]->GetFmt(); - lcl_RemoveChildSections(*pFmt); - pDoc->DelSectionFmt( pFmt ); - } - } - } -} - void SAL_CALL SwXDocumentIndex::dispose() throw (uno::RuntimeException) { SolarMutexGuard aGuard; -- cgit