diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-05-08 23:55:00 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-05-09 11:02:28 +0200 |
commit | 94be2168635e5305f3dfa3b1baf7f97d85ab026c (patch) | |
tree | a5b978e6a931a0f01d0e25da385fb5d6ae14e68f /sw | |
parent | 4dd2e61e2a52d0b5c582f16732de544391bad3d2 (diff) |
sw: remove debug code
Change-Id: I187c0b2bd2f9e4ddeeac80b6046c25d5cf674d71
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/node.cxx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx index e733d108c3e1..ee96eb72e89a 100644 --- a/sw/source/core/docnode/node.cxx +++ b/sw/source/core/docnode/node.cxx @@ -2048,23 +2048,6 @@ void SwNode::RemoveAnchoredFly(SwFrmFmt *const pFlyFmt) // cannot assert this in Remove because it is called when new anchor is already set // assert(&pFlyFmt->GetAnchor(false).GetCntntAnchor()->nNode.GetNode() == this); assert(IsTxtNode() || IsStartNode() || IsTableNode()); - if (!m_pAnchoredFlys) - { - SwNodeIndex idx(GetNodes()); - while (true) - { - SwNode & rNode(idx.GetNode()); - if (rNode.m_pAnchoredFlys) - { - auto it(std::find(rNode.m_pAnchoredFlys->begin(), rNode.m_pAnchoredFlys->end(), pFlyFmt)); - if (it != rNode.m_pAnchoredFlys->end()) - { - //XXX bug - } - } - ++idx; - } - } assert(m_pAnchoredFlys); auto it(std::find(m_pAnchoredFlys->begin(), m_pAnchoredFlys->end(), pFlyFmt)); assert(it != m_pAnchoredFlys->end()); |