From 94be2168635e5305f3dfa3b1baf7f97d85ab026c Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 8 May 2015 23:55:00 +0200 Subject: sw: remove debug code Change-Id: I187c0b2bd2f9e4ddeeac80b6046c25d5cf674d71 --- sw/source/core/docnode/node.cxx | 17 ----------------- 1 file changed, 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()); -- cgit v1.2.3