diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-04 22:41:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-05 10:03:17 +0100 |
commit | c6da7c43e10924597b6566fa5394684299c0a573 (patch) | |
tree | 83449de1af08f9013c89f497d9f8425d12e7d819 /svl | |
parent | Let's use std::deque instead of uno::Sequence. (diff) | |
download | core-c6da7c43e10924597b6566fa5394684299c0a573.tar.gz core-c6da7c43e10924597b6566fa5394684299c0a573.zip |
callcatcher: unused methods
Diffstat (limited to 'svl')
-rw-r--r-- | svl/inc/svl/filerec.hxx | 8 | ||||
-rw-r--r-- | svl/inc/svl/zforlist.hxx | 4 | ||||
-rw-r--r-- | svl/source/filerec/filerec.cxx | 93 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 6 |
4 files changed, 0 insertions, 111 deletions
diff --git a/svl/inc/svl/filerec.hxx b/svl/inc/svl/filerec.hxx index aabb4cdb5e00..2f80f02cca9a 100644 --- a/svl/inc/svl/filerec.hxx +++ b/svl/inc/svl/filerec.hxx @@ -361,9 +361,6 @@ protected: public: SfxSingleRecordWriter( SvStream *pStream, sal_uInt16 nTag, sal_uInt8 nCurVer ); - SfxSingleRecordWriter( SvStream *pStream, - sal_uInt16 nTag, sal_uInt8 nCurVer, - sal_uInt32 nSize ); inline void Reset(); @@ -417,7 +414,6 @@ protected: bool ReadHeader_Impl( sal_uInt16 nTypes ); public: - SfxSingleRecordReader( SvStream *pStream ); SfxSingleRecordReader( SvStream *pStream, sal_uInt16 nTag ); inline sal_uInt16 GetTag() const; @@ -489,9 +485,6 @@ protected: sal_uInt32 nContentSize ); public: - SfxMultiFixRecordWriter( SvStream *pStream, - sal_uInt16 nTag, sal_uInt8 nCurVer, - sal_uInt32 nContentSize ); inline ~SfxMultiFixRecordWriter(); inline void NewContent(); @@ -672,7 +665,6 @@ class SVL_DLLPUBLIC SfxMultiRecordReader: public SfxSingleRecordReader bool ReadHeader_Impl(); public: - SfxMultiRecordReader( SvStream *pStream ); SfxMultiRecordReader( SvStream *pStream, sal_uInt16 nTag ); ~SfxMultiRecordReader(); diff --git a/svl/inc/svl/zforlist.hxx b/svl/inc/svl/zforlist.hxx index ae51e2ddcbbd..279282fe88dd 100644 --- a/svl/inc/svl/zforlist.hxx +++ b/svl/inc/svl/zforlist.hxx @@ -798,10 +798,6 @@ public: language/country, used in XML import */ String GetStandardName( LanguageType eLnge ); - /// Skip a NumberFormatter in stream, Chart needs this - static void SkipNumberFormatterInStream( SvStream& ); - - private: ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceManager; ::com::sun::star::lang::Locale aLocale; diff --git a/svl/source/filerec/filerec.cxx b/svl/source/filerec/filerec.cxx index 0206d32ed011..29849096be6e 100644 --- a/svl/source/filerec/filerec.cxx +++ b/svl/source/filerec/filerec.cxx @@ -285,29 +285,6 @@ SfxSingleRecordWriter::SfxSingleRecordWriter *pStream << SFX_REC_HEADER( SFX_REC_TYPE_SINGLE, nContentTag, nContentVer); } -//------------------------------------------------------------------------- - -SfxSingleRecordWriter::SfxSingleRecordWriter -( - SvStream* pStream, // Stream, in dem der Record angelegt wird - sal_uInt16 nContentTag, // Inhalts-Art-Kennung - sal_uInt8 nContentVer, // Inhalts-Versions-Kennung - sal_uInt32 nContentSize // Gr"o\se des Inhalts in Bytes -) - -/* [Beschreibung] - - Legt in 'pStream' einen 'SfxSingleRecord' an, dessen Content-Gr"o\se - von vornherein bekannt ist. -*/ - -: SfxMiniRecordWriter( pStream, SFX_REC_PRETAG_EXT, - nContentSize + SFX_REC_HEADERSIZE_SINGLE ) -{ - // Erweiterten Header hinter den des SfxMiniRec schreiben - *pStream << SFX_REC_HEADER( SFX_REC_TYPE_SINGLE, nContentTag, nContentVer); -} - //========================================================================= inline bool SfxSingleRecordReader::ReadHeader_Impl( sal_uInt16 nTypes ) @@ -344,29 +321,6 @@ inline bool SfxSingleRecordReader::ReadHeader_Impl( sal_uInt16 nTypes ) //------------------------------------------------------------------------- -SfxSingleRecordReader::SfxSingleRecordReader( SvStream *pStream ) -: SfxMiniRecordReader() -{ - // Startposition merken, um im Fehlerfall zur"uck-seeken zu k"onnen - #ifdef DBG_UTIL - sal_uInt32 nStartPos = pStream->Tell(); - DBG( DbgOutf( "SfxFileRec: reading record at %ul", nStartPos ) ); - #endif - - // Basisklasse initialisieren (nicht via Ctor, da der nur MiniRecs akzept.) - Construct_Impl( pStream ); - - // nur Header mit korrektem Record-Type akzeptieren - if ( !ReadHeader_Impl( SFX_REC_TYPE_SINGLE ) ) - { - // Error-Code setzen und zur"uck-seeken - pStream->SeekRel( - SFX_REC_HEADERSIZE_SINGLE ); - pStream->SetError( ERRCODE_IO_WRONGFORMAT ); - } -} - -//------------------------------------------------------------------------- - SfxSingleRecordReader::SfxSingleRecordReader( SvStream *pStream, sal_uInt16 nTag ) { // StartPos merken, um im Fehlerfall zur"uck-seeken zu k"onnen @@ -473,30 +427,6 @@ SfxMultiFixRecordWriter::SfxMultiFixRecordWriter //------------------------------------------------------------------------ -SfxMultiFixRecordWriter::SfxMultiFixRecordWriter -( - SvStream* pStream, // Stream, in dem der Record angelegt wird - sal_uInt16 nContentTag, // Content-Art-Kennung - sal_uInt8 nContentVer, // Content-Versions-Kennung - sal_uInt32 // Gr"o\se jedes einzelnen Contents in Bytes -) - -/* [Beschreibung] - - Legt in 'pStream' einen 'SfxMultiFixRecord' an, dessen Content-Gr"o\se - konstant und von vornherein bekannt ist. -*/ - -: SfxSingleRecordWriter( SFX_REC_TYPE_FIXSIZE, - pStream, nContentTag, nContentVer ), - _nContentCount( 0 ) -{ - // Platz f"ur eigenen Header - pStream->SeekRel( + SFX_REC_HEADERSIZE_MULTI ); -} - -//------------------------------------------------------------------------ - sal_uInt32 SfxMultiFixRecordWriter::Close( bool bSeekToEndOfRec ) // siehe <SfxMiniRecordWriter> @@ -738,29 +668,6 @@ bool SfxMultiRecordReader::ReadHeader_Impl() //------------------------------------------------------------------------- -SfxMultiRecordReader::SfxMultiRecordReader( SvStream *pStream ) - : _pContentOfs(0) - , _nContentSize(0) - , _nContentCount(0) - , _nContentNo(0) -{ - // Position im Stream merken, um im Fehlerfall zur"uck-seeken zu k"onnen - _nStartPos = pStream->Tell(); - - // Basisklasse konstruieren (normaler Ctor w"urde nur SingleRecs lesen) - SfxSingleRecordReader::Construct_Impl( pStream ); - - // Header der Basisklasse lesen - if ( !SfxSingleRecordReader::ReadHeader_Impl( SFX_REC_TYPE_FIXSIZE | - SFX_REC_TYPE_VARSIZE | SFX_REC_TYPE_VARSIZE_RELOC | - SFX_REC_TYPE_MIXTAGS | SFX_REC_TYPE_MIXTAGS_RELOC ) || - !ReadHeader_Impl() ) - // als ung"ultig markieren und zur"uck-seeken - SetInvalid_Impl( _nStartPos ); -} - -//------------------------------------------------------------------------- - SfxMultiRecordReader::SfxMultiRecordReader( SvStream *pStream, sal_uInt16 nTag ) : _nContentNo(0) { diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 8ff4867274c0..2aca61938677 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -940,12 +940,6 @@ sal_Bool SvNumberFormatter::Save( SvStream& rStream ) const return sal_True; } -// static -void SvNumberFormatter::SkipNumberFormatterInStream( SvStream& rStream ) -{ - ImpSvNumMultipleReadHeader::Skip( rStream ); -} - void SvNumberFormatter::GetUsedLanguages( SvUShorts& rList ) { rList.Remove( 0, rList.Count() ); |