diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-06 18:51:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-06 19:22:37 +0000 |
commit | 278bc4ecfdb23b47c8890db81304526393d5106f (patch) | |
tree | 54b42d0690373cdf26e5dcbb5b8c9e44a8750389 /sc/source/filter | |
parent | ba9393b6446b1d779208f8581751d389641c4a18 (diff) |
coverity#1355250 Logically dead code
Change-Id: If5a07e11cf63d0dbb83853fce48b2eb7b458663b
Diffstat (limited to 'sc/source/filter')
-rw-r--r-- | sc/source/filter/dif/difexp.cxx | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/sc/source/filter/dif/difexp.cxx b/sc/source/filter/dif/difexp.cxx index 9a8016d01d72..1c26df14a9ba 100644 --- a/sc/source/filter/dif/difexp.cxx +++ b/sc/source/filter/dif/difexp.cxx @@ -49,7 +49,6 @@ void ScFormatFilterPluginImpl::ScExportDif( SvStream& rStream, ScDocument* pDoc, FltError ScFormatFilterPluginImpl::ScExportDif( SvStream& rOut, ScDocument* pDoc, const ScRange&rRange, const rtl_TextEncoding eCharSet ) { - sal_uInt32 nDifOption = SC_DIFOPT_EXCEL; OSL_ENSURE( rRange.aStart <= rRange.aEnd, "*ScExportDif(): Range not sorted!" ); OSL_ENSURE( rRange.aStart.Tab() == rRange.aEnd.Tab(), "ScExportDif(): only one table please!" ); @@ -100,10 +99,6 @@ FltError ScFormatFilterPluginImpl::ScExportDif( SvStream& rOut, ScDocument* pDoc SCROW nNumRows = nEndRow - rRange.aStart.Row() + 1; SCTAB nTab = rRange.aStart.Tab(); - double fVal; - - const bool bPlain = ( nDifOption == SC_DIFOPT_PLAIN ); - ScProgress aPrgrsBar( pDoc->GetDocumentShell(), ScGlobal::GetRscString( STR_LOAD_DOC ), nNumRows ); aPrgrsBar.SetState( 0 ); @@ -164,17 +159,8 @@ FltError ScFormatFilterPluginImpl::ScExportDif( SvStream& rOut, ScDocument* pDoc break; case CELLTYPE_VALUE: aOS.appendAscii(pNumData); - if( bPlain ) - { - aOS.append( - rtl::math::doubleToUString( - aCell.mfValue, rtl_math_StringFormat_G, 14, '.', true)); - } - else - { - pDoc->GetInputString( nColCnt, nRowCnt, nTab, aString ); - aOS.append(aString); - } + pDoc->GetInputString( nColCnt, nRowCnt, nTab, aString ); + aOS.append(aString); aOS.append("\nV\n"); break; case CELLTYPE_EDIT: @@ -188,18 +174,8 @@ FltError ScFormatFilterPluginImpl::ScExportDif( SvStream& rOut, ScDocument* pDoc else if (aCell.mpFormula->IsValue()) { aOS.appendAscii(pNumData); - if( bPlain ) - { - fVal = aCell.mpFormula->GetValue(); - aOS.append( - rtl::math::doubleToUString( - fVal, rtl_math_StringFormat_G, 14, '.', true)); - } - else - { - pDoc->GetInputString( nColCnt, nRowCnt, nTab, aString ); - aOS.append(aString); - } + pDoc->GetInputString( nColCnt, nRowCnt, nTab, aString ); + aOS.append(aString); aOS.append("\nV\n"); } else |