diff options
author | Petr Vorel <petr.vorel@gmail.com> | 2012-02-27 18:56:04 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-02-27 18:56:04 +0530 |
commit | 361b7fc217c69e7a5b457f86f721ad00f2c8c7d0 (patch) | |
tree | 18c4671963bfd421ab7270ba63b6de214c4c1033 /sc/source/filter/excel/xestring.cxx | |
parent | Replace getLength() with isEmpty() where appropriate (diff) | |
download | core-361b7fc217c69e7a5b457f86f721ad00f2c8c7d0.tar.gz core-361b7fc217c69e7a5b457f86f721ad00f2c8c7d0.zip |
Removed unused code.
Diffstat (limited to 'sc/source/filter/excel/xestring.cxx')
-rw-r--r-- | sc/source/filter/excel/xestring.cxx | 17 |
1 files changed, 0 insertions, 17 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" ); |