From 497a24b22e452e1b50bdb730bcc29642eb1db2b0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 25 Feb 2014 09:41:17 +0200 Subject: [PATCH] remove unused code oox::xls::FormulaParser::convertBoolToFormula(bool) Change-Id: Ib7c5af91e7db78ff41c19b38f7e440f6cd00a089 --- sc/source/filter/inc/formulaparser.hxx | 3 --- sc/source/filter/oox/formulaparser.cxx | 13 ------------- unusedcode.easy | 1 - 3 files changed, 17 deletions(-) diff --git a/sc/source/filter/inc/formulaparser.hxx b/sc/source/filter/inc/formulaparser.hxx index cc6101866285..5b8f2d01c808 100644 --- a/sc/source/filter/inc/formulaparser.hxx +++ b/sc/source/filter/inc/formulaparser.hxx @@ -125,9 +125,6 @@ public: BiffInputStream& rStrm, const sal_uInt16* pnFmlaSize = 0 ) const; - /** Converts the passed Boolean value to a similar formula. */ - ApiTokenSequence convertBoolToFormula( bool bValue ) const; - /** Converts the passed BIFF error code to a similar formula. */ ApiTokenSequence convertErrorToFormula( sal_uInt8 nErrorCode ) const; diff --git a/sc/source/filter/oox/formulaparser.cxx b/sc/source/filter/oox/formulaparser.cxx index 25c0a260ae4d..f7d96d537d8c 100644 --- a/sc/source/filter/oox/formulaparser.cxx +++ b/sc/source/filter/oox/formulaparser.cxx @@ -2796,19 +2796,6 @@ ApiTokenSequence FormulaParser::importFormula( const CellAddress& rBaseAddress, return mxImpl->importBiffFormula( rBaseAddress, eType, rStrm, pnFmlaSize ); } -ApiTokenSequence FormulaParser::convertBoolToFormula( bool bValue ) const -{ - if( const FunctionInfo* pFuncInfo = getFuncInfoFromBiffFuncId( bValue ? BIFF_FUNC_TRUE : BIFF_FUNC_FALSE ) ) - { - ApiTokenSequence aTokens( 3 ); - aTokens[ 0 ].OpCode = pFuncInfo->mnApiOpCode; - aTokens[ 1 ].OpCode = OPCODE_OPEN; - aTokens[ 2 ].OpCode = OPCODE_CLOSE; - return aTokens; - } - return ApiTokenSequence(); -} - ApiTokenSequence FormulaParser::convertErrorToFormula( sal_uInt8 nErrorCode ) const { ApiTokenSequence aTokens( 3 ); diff --git a/unusedcode.easy b/unusedcode.easy index 1ff55b9f37b1..a0a593af8436 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -303,7 +303,6 @@ oglcanvas::TextLayout::draw(com::sun::star::rendering::ViewState const&, com::su oox::AttributeConversion::decodeDouble(rtl::OUString const&) oox::core::Decrypt::aes128cbc(std::vector >&, std::vector >&, std::vector >&, std::vector >&) oox::xls::BiffDrawingObjectBase::BiffDrawingObjectBase(oox::xls::WorksheetHelper const&) -oox::xls::FormulaParser::convertBoolToFormula(bool) const oox::xls::WorkbookHelper::getDocShell() oox::xls::WorksheetGlobals::getColumns(oox::ValueRange const&) const oox::xls::WorksheetGlobals::getRows(oox::ValueRange const&) const