diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-16 23:06:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-17 09:54:13 +0100 |
commit | 7acd9e2c28911003511de641cfd18b86bde7d808 (patch) | |
tree | 17d19f4778f0df9a9557d827ea0b6b43757750ec /svl | |
parent | 9b845e5814ba8f251986494bed4ec3c64bddcfd3 (diff) |
callcatcher: remove some methods
Diffstat (limited to 'svl')
-rw-r--r-- | svl/inc/svl/filerec.hxx | 28 | ||||
-rw-r--r-- | svl/source/filerec/filerec.cxx | 39 |
2 files changed, 0 insertions, 67 deletions
diff --git a/svl/inc/svl/filerec.hxx b/svl/inc/svl/filerec.hxx index 2f80f02cca9a..5c3a8dd1c6ab 100644 --- a/svl/inc/svl/filerec.hxx +++ b/svl/inc/svl/filerec.hxx @@ -342,14 +342,6 @@ class SVL_DLLPUBLIC SfxSingleRecordWriter: public SfxMiniRecordWriter 1* sal_uInt8 Content-Version 1* sal_uInt16 Content-Tag SizeOfContent* sal_uInt8 Content - - [Beispiel] - - { - SfxSingleRecordWriter aRecord( pStream, MY_TAG_X, MY_VERSION ); - *aRecord << aMember1; - *aRecord << aMember2; - } */ { @@ -359,9 +351,6 @@ protected: sal_uInt16 nTag, sal_uInt8 nCurVer ); public: - SfxSingleRecordWriter( SvStream *pStream, - sal_uInt16 nTag, sal_uInt8 nCurVer ); - inline void Reset(); sal_uInt32 Close( bool bSeekToEndOfRec = true ); @@ -379,22 +368,6 @@ class SVL_DLLPUBLIC SfxSingleRecordReader: public SfxMiniRecordReader Es ist auch m"oglich, den Record zu "uberspringen, ohne sein internes Format zu kennen. - - [Beispiel] - - { - SfxSingleRecordReader aRecord( pStream ); - switch ( aRecord.GetTag() ) - { - case MY_TAG_X: - aRecord >> aMember1; - if ( aRecord.HasVersion(2) ) - *aRecord >> aMember2; - break; - - ... - } - } */ { @@ -414,7 +387,6 @@ protected: bool ReadHeader_Impl( sal_uInt16 nTypes ); public: - SfxSingleRecordReader( SvStream *pStream, sal_uInt16 nTag ); inline sal_uInt16 GetTag() const; diff --git a/svl/source/filerec/filerec.cxx b/svl/source/filerec/filerec.cxx index 29849096be6e..2fc9dd4d3dee 100644 --- a/svl/source/filerec/filerec.cxx +++ b/svl/source/filerec/filerec.cxx @@ -263,28 +263,6 @@ SfxSingleRecordWriter::SfxSingleRecordWriter *pStream << SFX_REC_HEADER(nRecordType, 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 -) - -/* [Beschreibung] - - Legt in 'pStream' einen 'SfxSingleRecord' an, dessen Content-Gr"o\se - nicht bekannt ist, sondern nach dam Streamen des Contents errechnet - werden soll. -*/ - -: SfxMiniRecordWriter( pStream, SFX_REC_PRETAG_EXT ) -{ - // Erweiterten Header hiner den des SfxMiniRec schreiben - *pStream << SFX_REC_HEADER( SFX_REC_TYPE_SINGLE, nContentTag, nContentVer); -} - //========================================================================= inline bool SfxSingleRecordReader::ReadHeader_Impl( sal_uInt16 nTypes ) @@ -321,23 +299,6 @@ inline bool SfxSingleRecordReader::ReadHeader_Impl( sal_uInt16 nTypes ) //------------------------------------------------------------------------- -SfxSingleRecordReader::SfxSingleRecordReader( SvStream *pStream, sal_uInt16 nTag ) -{ - // StartPos merken, um im Fehlerfall zur"uck-seeken zu k"onnen - sal_uInt32 nStartPos = pStream->Tell(); - - // richtigen Record suchen, ggf. Error-Code setzen und zur"uck-seeken - Construct_Impl( pStream ); - if ( !FindHeader_Impl( SFX_REC_TYPE_SINGLE, nTag ) ) - { - // Error-Code setzen und zur"uck-seeken - pStream->Seek( nStartPos ); - pStream->SetError( ERRCODE_IO_WRONGFORMAT ); - } -} - -//------------------------------------------------------------------------- - bool SfxSingleRecordReader::FindHeader_Impl ( sal_uInt16 nTypes, // arithm. Veroderung erlaubter Record-Typen |