summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/ndsect.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-01 13:56:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-02 06:20:35 +0000
commitd68a0fc050ea4d57e15246f8e71781cd42ebdaa1 (patch)
treed8f8e8823de13253a1bb41a8a4804dfec042694b /sw/source/core/docnode/ndsect.cxx
parentde020fc9c3c67541067bc7e0b72ed41eae650288 (diff)
loplugin:unusedmethods
Change-Id: Ie1603adf3908fd0668bcbe8f75c6bafa0d0bfd6c Reviewed-on: https://gerrit.libreoffice.org/19072 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/core/docnode/ndsect.cxx')
-rw-r--r--sw/source/core/docnode/ndsect.cxx30
1 files changed, 0 insertions, 30 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx
index e4a760efa6bf..85b6febcb232 100644
--- a/sw/source/core/docnode/ndsect.cxx
+++ b/sw/source/core/docnode/ndsect.cxx
@@ -1000,36 +1000,6 @@ SwSectionNode::SwSectionNode(SwNodeIndex const& rIdx,
rFormat.UnlockModify();
}
-#ifdef DBG_UTIL
-//remove superfluous SectionFrms
-SwFrm* SwClearDummies( SwFrm* pFrm )
-{
- SwFrm* pTmp = pFrm;
- while( pTmp )
- {
- OSL_ENSURE( !pTmp->GetUpper(), "SwClearDummies: No Upper allowed!" );
- if( pTmp->IsSctFrm() )
- {
- SwSectionFrm* pSectFrm = static_cast<SwSectionFrm*>(pFrm);
- pTmp = pTmp->GetNext();
- if( !pSectFrm->GetLower() )
- {
- if( pSectFrm->GetPrev() )
- pSectFrm->GetPrev()->mpNext = pTmp;
- else
- pFrm = pTmp;
- if( pTmp )
- pTmp->mpPrev = pSectFrm->GetPrev();
- SwFrm::DestroyFrm(pSectFrm);
- }
- }
- else
- pTmp = pTmp->GetNext();
- }
- return pFrm;
-}
-#endif
-
SwSectionNode::~SwSectionNode()
{
// mba: test if iteration works as clients will be removed in callback