summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-13 15:54:26 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-02-13 15:56:32 +0000
commitf1c162967f032fcc5e4859f67c5b614c5dd19642 (patch)
tree2b017b458d0911b8740ab818706ff029cc1081db /oox
parent4f82f1e07607711f1c6b8c07ffb446a6dbaafc88 (diff)
Remove unused code
Diffstat (limited to 'oox')
-rw-r--r--oox/inc/oox/xls/addressconverter.hxx2
-rw-r--r--oox/inc/oox/xls/formulabase.hxx4
-rw-r--r--oox/inc/oox/xls/unitconverter.hxx2
-rw-r--r--oox/source/xls/addressconverter.cxx18
-rw-r--r--oox/source/xls/formulabase.cxx11
-rw-r--r--oox/source/xls/unitconverter.cxx6
6 files changed, 0 insertions, 43 deletions
diff --git a/oox/inc/oox/xls/addressconverter.hxx b/oox/inc/oox/xls/addressconverter.hxx
index ce2c8768928e..681c2bb2b89f 100644
--- a/oox/inc/oox/xls/addressconverter.hxx
+++ b/oox/inc/oox/xls/addressconverter.hxx
@@ -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;
diff --git a/oox/inc/oox/xls/formulabase.hxx b/oox/inc/oox/xls/formulabase.hxx
index 0a3b35a30a4b..610b2274a69b 100644
--- a/oox/inc/oox/xls/formulabase.hxx
+++ b/oox/inc/oox/xls/formulabase.hxx
@@ -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;
diff --git a/oox/inc/oox/xls/unitconverter.hxx b/oox/inc/oox/xls/unitconverter.hxx
index fe14e0f377d7..a6ae7562339d 100644
--- a/oox/inc/oox/xls/unitconverter.hxx
+++ b/oox/inc/oox/xls/unitconverter.hxx
@@ -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;
diff --git a/oox/source/xls/addressconverter.cxx b/oox/source/xls/addressconverter.cxx
index 8a5a6701d165..9fd9c387d49a 100644
--- a/oox/source/xls/addressconverter.cxx
+++ b/oox/source/xls/addressconverter.cxx
@@ -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();
diff --git a/oox/source/xls/formulabase.cxx b/oox/source/xls/formulabase.cxx
index e9ffa950a5bc..0b10950afff8 100644
--- a/oox/source/xls/formulabase.cxx
+++ b/oox/source/xls/formulabase.cxx
@@ -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();
diff --git a/oox/source/xls/unitconverter.cxx b/oox/source/xls/unitconverter.cxx
index 194c51d82beb..2438023bc56c 100644
--- a/oox/source/xls/unitconverter.cxx
+++ b/oox/source/xls/unitconverter.cxx
@@ -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 );