diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-01 12:02:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-01 13:11:47 +0100 |
commit | 33b8636ced08abcb48c2424709db21e7a8fc27bf (patch) | |
tree | 6cda6b1694b87de35bb85bc209cab29f810fd382 | |
parent | 06284f399da1f504f58cc483651a3932f9746e63 (diff) |
coverity#704264 Logically dead code
and coverity#704265 Logically dead code
Change-Id: Ice40fcb71de4cca07e3353cf579477c7e5363e52
-rw-r--r-- | sc/source/filter/lotus/lotform.cxx | 11 | ||||
-rw-r--r-- | sc/source/filter/qpro/qproform.cxx | 7 |
2 files changed, 0 insertions, 18 deletions
diff --git a/sc/source/filter/lotus/lotform.cxx b/sc/source/filter/lotus/lotform.cxx index dc0dcbaadc46..ebb3eb2992ee 100644 --- a/sc/source/filter/lotus/lotform.cxx +++ b/sc/source/filter/lotus/lotform.cxx @@ -35,9 +35,6 @@ static const sal_Char* GetAddInName( const sal_uInt8 nIndex ); static DefTokenId lcl_KnownAddIn(const OString& rTest); -//extern double decipher_Number123( sal_uInt32 nValue ); - - void LotusToSc::DoFunc( DefTokenId eOc, sal_uInt8 nAnz, const sal_Char* pExtString ) { TokenId eParam[ 256 ]; @@ -45,7 +42,6 @@ void LotusToSc::DoFunc( DefTokenId eOc, sal_uInt8 nAnz, const sal_Char* pExtStri TokenId nMerk0, nMerk1; sal_Bool bAddIn = false; - sal_Bool bNeg = false; OSL_ENSURE( nAnz < 128, "-LotusToSc::DoFunc(): Neee! -so viel kann ich nicht!" ); @@ -197,15 +193,8 @@ void LotusToSc::DoFunc( DefTokenId eOc, sal_uInt8 nAnz, const sal_Char* pExtStri aPool << ocClose; aPool >> aStack; - - if( bNeg ) - { - aPool << ocOpen << ocSub << aStack << ocClose; - aPool >> aStack; - } } - void LotusToSc::LotusRelToScRel( sal_uInt16 nCol, sal_uInt16 nRow, ScSingleRefData& rSRD ) { // Col-Bemachung diff --git a/sc/source/filter/qpro/qproform.cxx b/sc/source/filter/qpro/qproform.cxx index ff47b007a8fc..a53060bb9b08 100644 --- a/sc/source/filter/qpro/qproform.cxx +++ b/sc/source/filter/qpro/qproform.cxx @@ -79,7 +79,6 @@ void QProToSc::DoFunc( DefTokenId eOc, sal_uInt16 nArgs, const sal_Char* pExtStr TokenId nPush, nPush1; sal_Bool bAddIn = false; - sal_Bool bNeg = false; if( eOc == ocNoName ) { @@ -160,12 +159,6 @@ void QProToSc::DoFunc( DefTokenId eOc, sal_uInt16 nArgs, const sal_Char* pExtStr aPool << ocClose; aPool >> aStack; - - if( bNeg ) - { - aPool << ocOpen << ocSub << aStack << ocClose; - aPool >> aStack; - } } void QProToSc::IncToken( TokenId &rParam ) |