summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorPetr Vorel <petr.vorel@gmail.com>2012-02-27 18:56:04 +0530
committerMuthu Subramanian <sumuthu@suse.com>2012-02-27 18:56:04 +0530
commit361b7fc217c69e7a5b457f86f721ad00f2c8c7d0 (patch)
tree18c4671963bfd421ab7270ba63b6de214c4c1033 /sc
parentReplace getLength() with isEmpty() where appropriate (diff)
downloadcore-361b7fc217c69e7a5b457f86f721ad00f2c8c7d0.tar.gz
core-361b7fc217c69e7a5b457f86f721ad00f2c8c7d0.zip
Removed unused code.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xestring.cxx17
-rw-r--r--sc/source/filter/excel/xestyle.cxx6
-rw-r--r--sc/source/filter/excel/xlformula.cxx11
-rw-r--r--sc/source/filter/excel/xlstyle.cxx5
-rw-r--r--sc/source/filter/inc/xestring.hxx2
-rw-r--r--sc/source/filter/inc/xestyle.hxx6
-rw-r--r--sc/source/filter/inc/xlformula.hxx3
-rw-r--r--sc/source/filter/inc/xlstyle.hxx2
8 files changed, 0 insertions, 52 deletions
diff --git a/sc/source/filter/excel/xestring.cxx b/sc/source/filter/excel/xestring.cxx
index d12ebe8470f6..2053a680de35 100644
--- a/sc/source/filter/excel/xestring.cxx
+++ b/sc/source/filter/excel/xestring.cxx
@@ -184,23 +184,6 @@ void XclExpString::AppendByte( sal_Unicode cChar, rtl_TextEncoding eTextEnc )
// formatting runs ------------------------------------------------------------
-void XclExpString::SetFormats( const XclFormatRunVec& rFormats )
-{
- maFormats = rFormats;
-#if OSL_DEBUG_LEVEL > 0
- if( IsRich() )
- {
- XclFormatRunVec::const_iterator aCurr = maFormats.begin();
- XclFormatRunVec::const_iterator aPrev = aCurr;
- XclFormatRunVec::const_iterator aEnd = maFormats.end();
- for( ++aCurr; aCurr != aEnd; ++aCurr, ++aPrev )
- OSL_ENSURE( aPrev->mnChar < aCurr->mnChar, "XclExpString::SetFormats - invalid char order" );
- OSL_ENSURE( aPrev->mnChar <= mnLen, "XclExpString::SetFormats - invalid char index" );
- }
-#endif
- LimitFormatCount( mbIsBiff8 ? EXC_STR_MAXLEN : EXC_STR_MAXLEN_8BIT );
-}
-
void XclExpString::AppendFormat( sal_uInt16 nChar, sal_uInt16 nFontIdx, bool bDropDuplicate )
{
OSL_ENSURE( maFormats.empty() || (maFormats.back().mnChar < nChar), "XclExpString::AppendFormat - invalid char index" );
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 1d7f190b7d28..ae51486356e8 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -1124,12 +1124,6 @@ sal_uInt16 XclExpFontBuffer::Insert( const SfxItemSet& rItemSet,
return Insert( aFont, eColorType, bAppFont );
}
-sal_uInt16 XclExpFontBuffer::Insert( const ScPatternAttr& rPattern,
- sal_Int16 nScript, XclExpColorType eColorType, bool bAppFont )
-{
- return Insert( rPattern.GetItemSet(), nScript, eColorType, bAppFont );
-}
-
void XclExpFontBuffer::Save( XclExpStream& rStrm )
{
maFontList.Save( rStrm );
diff --git a/sc/source/filter/excel/xlformula.cxx b/sc/source/filter/excel/xlformula.cxx
index 02154ba9eb5c..8685041aa222 100644
--- a/sc/source/filter/excel/xlformula.cxx
+++ b/sc/source/filter/excel/xlformula.cxx
@@ -483,12 +483,6 @@ XclTokenArray::XclTokenArray( bool bVolatile ) :
{
}
-XclTokenArray::XclTokenArray( ScfUInt8Vec& rTokVec, bool bVolatile ) :
- mbVolatile( bVolatile )
-{
- maTokVec.swap( rTokVec );
-}
-
XclTokenArray::XclTokenArray( ScfUInt8Vec& rTokVec, ScfUInt8Vec& rExtDataVec, bool bVolatile ) :
mbVolatile( bVolatile )
{
@@ -598,11 +592,6 @@ XclTokenArrayIterator::XclTokenArrayIterator( const XclTokenArrayIterator& rTokA
SkipSpaces();
}
-void XclTokenArrayIterator::Init()
-{
- mppScTokenBeg = mppScTokenEnd = mppScToken = 0;
-}
-
void XclTokenArrayIterator::Init( const ScTokenArray& rScTokArr, bool bSkipSpaces )
{
sal_uInt16 nTokArrLen = rScTokArr.GetLen();
diff --git a/sc/source/filter/excel/xlstyle.cxx b/sc/source/filter/excel/xlstyle.cxx
index db0603d5c93a..e8ef58e8b401 100644
--- a/sc/source/filter/excel/xlstyle.cxx
+++ b/sc/source/filter/excel/xlstyle.cxx
@@ -1751,11 +1751,6 @@ void XclXFBase::SetAllUsedFlags( bool bUsed )
mbProtUsed = mbFontUsed = mbFmtUsed = mbAlignUsed = mbBorderUsed = mbAreaUsed = bUsed;
}
-bool XclXFBase::HasUsedFlags() const
-{
- return mbProtUsed || mbFontUsed || mbFmtUsed || mbAlignUsed || mbBorderUsed || mbAreaUsed;
-}
-
bool XclXFBase::Equals( const XclXFBase& rCmp ) const
{
return
diff --git a/sc/source/filter/inc/xestring.hxx b/sc/source/filter/inc/xestring.hxx
index abc6f331aa1b..42ab5db8bed0 100644
--- a/sc/source/filter/inc/xestring.hxx
+++ b/sc/source/filter/inc/xestring.hxx
@@ -131,8 +131,6 @@ public:
// formatting runs --------------------------------------------------------
- /** Sets new formatting runs for the current text. */
- void SetFormats( const XclFormatRunVec& rFormats );
/** Appends a formatting run. nChar must be greater than last contained character index. */
void AppendFormat( sal_uInt16 nChar, sal_uInt16 nFontIdx, bool bDropDuplicate = true );
/** Appends a trailing formatting run with the passed font index. */
diff --git a/sc/source/filter/inc/xestyle.hxx b/sc/source/filter/inc/xestyle.hxx
index 8f38b6f13352..c1263b30dba5 100644
--- a/sc/source/filter/inc/xestyle.hxx
+++ b/sc/source/filter/inc/xestyle.hxx
@@ -247,12 +247,6 @@ public:
@return The resulting Excel font index. */
sal_uInt16 Insert( const SfxItemSet& rItemSet, sal_Int16 nScript,
XclExpColorType eColorType, bool bAppFont = false );
- /** Inserts the font contained in rPattern into the buffer if not present.
- @param nScript The script type of the font properties to be used.
- @param bAppFont true = Sets the application font; false = Inserts a new font.
- @return The resulting Excel font index. */
- sal_uInt16 Insert( const ScPatternAttr& rPattern, sal_Int16 nScript,
- XclExpColorType eColorType, bool bAppFont = false );
/** Writes all FONT records contained in this buffer. */
virtual void Save( XclExpStream& rStrm );
diff --git a/sc/source/filter/inc/xlformula.hxx b/sc/source/filter/inc/xlformula.hxx
index 3a9e6e7972c4..3281d2531f43 100644
--- a/sc/source/filter/inc/xlformula.hxx
+++ b/sc/source/filter/inc/xlformula.hxx
@@ -373,8 +373,6 @@ class XclTokenArray
public:
/** Creates an empty token array. */
explicit XclTokenArray( bool bVolatile = false );
- /** Creates a token array, swaps passed token vector into own data. */
- explicit XclTokenArray( ScfUInt8Vec& rTokVec, bool bVolatile = false );
/** Creates a token array, swaps passed token vectors into own data. */
explicit XclTokenArray( ScfUInt8Vec& rTokVec, ScfUInt8Vec& rExtDataVec, bool bVolatile = false );
@@ -444,7 +442,6 @@ public:
/** Copy constructor that allows to change the skip-spaces mode. */
explicit XclTokenArrayIterator( const XclTokenArrayIterator& rTokArrIt, bool bSkipSpaces );
- void Init();
void Init( const ScTokenArray& rScTokArr, bool bSkipSpaces );
inline bool Is() const { return mppScToken != 0; }
diff --git a/sc/source/filter/inc/xlstyle.hxx b/sc/source/filter/inc/xlstyle.hxx
index 793576339c2f..0c2ab6c25558 100644
--- a/sc/source/filter/inc/xlstyle.hxx
+++ b/sc/source/filter/inc/xlstyle.hxx
@@ -593,8 +593,6 @@ public:
/** Sets all "attribute used" flags to the passed state. */
void SetAllUsedFlags( bool bUsed );
- /** Returns true, if any "attribute used" flags are ste in this XF. */
- bool HasUsedFlags() const;
/** Returns true, if this is a hard cell format. */
inline bool IsCellXF() const { return mbCellXF; }