diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-10 21:15:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-10 21:15:55 +0100 |
commit | f9a4123637366d925e79b52123cb11dce1bccf0f (patch) | |
tree | f8a845d12640eb0bd612b7d1203b7bfae0ed4576 /vcl | |
parent | 5094b783faf1f8daf23fd08fd25af94eaf1e3d90 (diff) |
coverity#1323752 Logically dead code
Change-Id: Ic7b0e9c6a1e4e1ce37d49358828a660fdfc63a1d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/edit/texteng.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index bc9bc3fb3f3a..e3ad74f026aa 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2203,7 +2203,6 @@ bool TextEngine::CreateLines( sal_uInt32 nPara ) // format all lines starting here size_t nDelFromLine = std::numeric_limits<size_t>::max(); - bool bLineBreak = false; sal_Int32 nIndex = pLine->GetStart(); TextLine aSaveLine( *pLine ); @@ -2227,7 +2226,6 @@ bool TextEngine::CreateLines( sal_uInt32 nPara ) // search for Portion that does not fit anymore into line TETextPortion* pPortion = 0; bool bBrokenLine = false; - bLineBreak = false; while ( ( nTmpWidth <= nXWidth ) && !bEOL && ( nTmpPortion < pTEParaPortion->GetTextPortions().size() ) ) { @@ -2296,7 +2294,7 @@ bool TextEngine::CreateLines( sal_uInt32 nPara ) pLine->SetEnd( nPortionStart ); pLine->SetEndPortion( nTmpPortion-1 ); } - else if ( bLineBreak || bBrokenLine ) + else if ( bBrokenLine ) { pLine->SetEnd( nPortionStart+1 ); pLine->SetEndPortion( nTmpPortion-1 ); @@ -2421,9 +2419,6 @@ bool TextEngine::CreateLines( sal_uInt32 nPara ) DBG_ASSERT( pTEParaPortion->GetLines().size(), "CreateLines: No Line!" ); - if ( bLineBreak ) - CreateAndInsertEmptyLine( nPara ); - pTEParaPortion->SetValid(); return nOldLineCount != pTEParaPortion->GetLines().size(); |