Kaydet (Commit) f1c16296 authored tarafından Elton Chung's avatar Elton Chung Kaydeden (comit) Michael Meeks

Remove unused code

üst 4f82f1e0
......@@ -178,8 +178,6 @@ class BinRangeList : public ::std::vector< BinRange >
public:
inline explicit BinRangeList() {}
BinRange getEnclosingRange() const;
void read( SequenceInputStream& rStrm );
void read( BiffInputStream& rStrm, bool bCol16Bit = true, bool bRow32Bit = false );
void write( BiffOutputStream& rStrm, bool bCol16Bit = true, bool bRow32Bit = false ) const;
......
......@@ -532,7 +532,6 @@ class FunctionParamInfoIterator
public:
explicit FunctionParamInfoIterator( const FunctionInfo& rFuncInfo );
const FunctionParamInfo& getParamInfo() const;
bool isCalcOnlyParam() const;
bool isExcelOnlyParam() const;
FunctionParamInfoIterator& operator++();
......@@ -555,9 +554,6 @@ public:
explicit FunctionProvider( FilterType eFilter, BiffType eBiff, bool bImportFilter );
virtual ~FunctionProvider();
/** Returns the function info for an ODF function name, or 0 on error. */
const FunctionInfo* getFuncInfoFromOdfFuncName( const ::rtl::OUString& rFuncName ) const;
/** Returns the function info for an OOXML function name, or 0 on error. */
const FunctionInfo* getFuncInfoFromOoxFuncName( const ::rtl::OUString& rFuncName ) const;
......
......@@ -94,8 +94,6 @@ public:
/** Returns the datetime of the passed serial value, based on current nulldate. */
::com::sun::star::util::DateTime calcDateTimeFromSerial( double fSerial ) const;
/** Returns an error string from the passed BIFF error code. */
::rtl::OUString calcOoxErrorCode( sal_uInt8 nErrorCode ) const;
/** Returns a BIFF error code from the passed error string. */
sal_uInt8 calcBiffErrorCode( const ::rtl::OUString& rErrorCode ) const;
......
......@@ -181,24 +181,6 @@ void BinRange::write( BiffOutputStream& rStrm, bool bCol16Bit, bool bRow32Bit )
// ============================================================================
BinRange BinRangeList::getEnclosingRange() const
{
BinRange aRange;
if( !empty() )
{
const_iterator aIt = begin(), aEnd = end();
aRange = *aIt;
for( ++aIt; aIt != aEnd; ++aIt )
{
aRange.maFirst.mnCol = ::std::min( aRange.maFirst.mnCol, aIt->maFirst.mnCol );
aRange.maFirst.mnRow = ::std::min( aRange.maFirst.mnRow, aIt->maFirst.mnRow );
aRange.maLast.mnCol = ::std::max( aRange.maLast.mnCol, aIt->maLast.mnCol );
aRange.maLast.mnRow = ::std::max( aRange.maLast.mnRow, aIt->maLast.mnRow );
}
}
return aRange;
}
void BinRangeList::read( SequenceInputStream& rStrm )
{
sal_Int32 nCount = rStrm.readInt32();
......
......@@ -797,12 +797,6 @@ FunctionParamInfoIterator::FunctionParamInfoIterator( const FunctionInfo& rFuncI
"FunctionParamInfoIterator::FunctionParamInfoIterator - expecting at least 2 infos for paired parameters" );
}
const FunctionParamInfo& FunctionParamInfoIterator::getParamInfo() const
{
static const FunctionParamInfo saInvalidInfo = { FUNC_PARAM_NONE, FUNC_PARAMCONV_ORG, false };
return mpParamInfo ? *mpParamInfo : saInvalidInfo;
}
bool FunctionParamInfoIterator::isCalcOnlyParam() const
{
return mpParamInfo && (mpParamInfo->meValid == FUNC_PARAM_CALCONLY);
......@@ -967,11 +961,6 @@ FunctionProvider::~FunctionProvider()
{
}
const FunctionInfo* FunctionProvider::getFuncInfoFromOdfFuncName( const OUString& rFuncName ) const
{
return mxFuncImpl->maOdfFuncs.get( rFuncName ).get();
}
const FunctionInfo* FunctionProvider::getFuncInfoFromOoxFuncName( const OUString& rFuncName ) const
{
return mxFuncImpl->maOoxFuncs.get( rFuncName ).get();
......
......@@ -230,12 +230,6 @@ DateTime UnitConverter::calcDateTimeFromSerial( double fSerial ) const
return aDateTime;
}
OUString UnitConverter::calcOoxErrorCode( sal_uInt8 nErrorCode ) const
{
BiffErrorCodeMap::const_iterator aIt = maBiffErrCodes.find( nErrorCode );
return (aIt == maBiffErrCodes.end()) ? CREATE_OUSTRING( "#N/A" ) : aIt->second;
}
sal_uInt8 UnitConverter::calcBiffErrorCode( const OUString& rErrorCode ) const
{
OoxErrorCodeMap::const_iterator aIt = maOoxErrCodes.find( rErrorCode );
......
......@@ -1372,7 +1372,6 @@ oox::xls::BiffOutputStream::startRecord(unsigned short)
oox::xls::BiffOutputStream::tellBase() const
oox::xls::BinAddress::write(oox::xls::BiffOutputStream&, bool, bool) const
oox::xls::BinRange::contains(oox::xls::BinAddress const&) const
oox::xls::BinRangeList::getEnclosingRange() const
oox::xls::BinRangeList::write(oox::xls::BiffOutputStream&, bool, bool) const
oox::xls::CellBlock::CellBlock(oox::xls::WorksheetHelper const&, oox::ValueRange const&, int)
oox::xls::CellBlock::isBefore(oox::ValueRange const&) const
......@@ -1387,8 +1386,6 @@ oox::xls::FormulaParser::convertNumberToHyperlink(rtl::OUString const&, double)
oox::xls::FormulaParser::importOleTargetLink(oox::xls::BiffInputStream&, unsigned short const*) const
oox::xls::FormulaParserImpl::removeOperand(unsigned long, unsigned long)
oox::xls::FormulaProcessorBase::generateApiRangeString(com::sun::star::table::CellRangeAddress const&) const
oox::xls::FunctionParamInfoIterator::getParamInfo() const
oox::xls::FunctionProvider::getFuncInfoFromOdfFuncName(rtl::OUString const&) const
oox::xls::ShapeAnchor::getToCell() const
oox::xls::SheetDataBuffer::XfIdRange::set(com::sun::star::table::CellAddress const&, int, int)
oox::xls::SheetDataBuffer::XfIdRange::tryExpand(com::sun::star::table::CellAddress const&, int, int)
......@@ -1396,7 +1393,6 @@ oox::xls::SheetDataBuffer::XfIdRange::tryMerge(oox::xls::SheetDataBuffer::XfIdRa
oox::xls::SheetDataBuffer::XfIdRowRange::intersects(com::sun::star::table::CellRangeAddress const&) const
oox::xls::StylesBuffer::getDxf(int) const
oox::xls::StylesBuffer::writeStyleXfToPropertyMap(oox::PropertyMap&, int) const
oox::xls::UnitConverter::calcOoxErrorCode(unsigned char) const
oox::xls::WorkbookHelper::getBiffFilter() const
oox::xls::WorkbookHelper::getCellFromDoc(com::sun::star::table::CellAddress const&) const
oox::xls::WorkbookHelper::setTextEncoding(unsigned short)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment