Kaydet (Commit) 5dc453ac authored tarafından Michael Stahl's avatar Michael Stahl

sw: SwTxtNode::CutText() requires a destination

Remove dead code.

Change-Id: Ib6a75718d411effe87d59d30420e2e9d7f15984e
üst b265ddb9
......@@ -2024,29 +2024,15 @@ OUString SwTextNode::InsertText( const OUString & rStr, const SwIndex & rIdx,
void SwTextNode::CutText( SwTextNode * const pDest,
const SwIndex & rStart, const sal_Int32 nLen )
{
if(pDest)
{
SwIndex aDestStt(pDest, pDest->GetText().getLength());
CutImpl( pDest, aDestStt, rStart, nLen, false );
}
else
{
OSL_FAIL("mst: entering dead and bitrotted code; fasten your seatbelts!");
assert(false);
EraseText( rStart, nLen );
}
assert(pDest); // Cut requires a destination
SwIndex aDestStt(pDest, pDest->GetText().getLength());
CutImpl( pDest, aDestStt, rStart, nLen, false );
}
void SwTextNode::CutImpl( SwTextNode * const pDest, const SwIndex & rDestStart,
const SwIndex & rStart, sal_Int32 nLen, const bool bUpdate )
{
if(!pDest)
{
OSL_FAIL("mst: entering dead and bitrotted code; fasten your seatbelts!");
assert(false);
EraseText( rStart, nLen );
return;
}
assert(pDest); // Cut requires a destination
// nicht im Dokument verschieben ?
if( GetDoc() != pDest->GetDoc() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment