diff options
-rw-r--r-- | sw/source/core/unocore/unoidx.cxx | 19 |
1 files changed, 0 insertions, 19 deletions
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; |