From 33b8636ced08abcb48c2424709db21e7a8fc27bf Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 1 Apr 2014 12:02:03 +0100 Subject: coverity#704264 Logically dead code and coverity#704265 Logically dead code Change-Id: Ice40fcb71de4cca07e3353cf579477c7e5363e52 --- sc/source/filter/lotus/lotform.cxx | 11 ----------- sc/source/filter/qpro/qproform.cxx | 7 ------- 2 files changed, 18 deletions(-) (limited to 'sc') 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 ) -- cgit