diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-05-05 11:53:55 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-05-07 11:02:11 +0900 |
commit | c38d9f4e63c948cd298c82f6276f8dd2bcee6cdd (patch) | |
tree | 3e4a4f4dc20c0b25bbd303e4e9afcbe07f12c7f9 /svl | |
parent | 7858c0f7881fea439b0701482d3a95d73e0f3cb1 (diff) |
drop commented-out code
Change-Id: I7384a4fd82c8807dfaf9049306b65fe3ef5cab42
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/numhead.cxx | 68 | ||||
-rw-r--r-- | svl/source/numbers/numhead.hxx | 32 |
2 files changed, 0 insertions, 100 deletions
diff --git a/svl/source/numbers/numhead.cxx b/svl/source/numbers/numhead.cxx index 8c106bbacece..04964e9d3606 100644 --- a/svl/source/numbers/numhead.cxx +++ b/svl/source/numbers/numhead.cxx @@ -24,74 +24,6 @@ // ID's fuer Dateien: #define SV_NUMID_SIZES 0x4200 -// STATIC DATA ----------------------------------------------------------- - -//SEG_EOFGLOBALS() - -// ======================================================================= -/* wird fuer SvNumberformatter nicht gebraucht -//#pragma SEG_FUNCDEF(numhead_01) - -SvNumReadHeader::SvNumReadHeader(SvStream& rNewStream) : - rStream( rNewStream ) -{ - sal_uLong nDataSize; - rStream >> nDataSize; - nDataEnd = rStream.Tell() + nDataSize; -} - -//#pragma SEG_FUNCDEF(numhead_02) - -SvNumReadHeader::~SvNumReadHeader() -{ - sal_uLong nReadEnd = rStream.Tell(); - DBG_ASSERT( nReadEnd <= nDataEnd, "zuviele Bytes gelesen" ); - if ( nReadEnd != nDataEnd ) - rStream.Seek(nDataEnd); // Rest ueberspringen -} - -//#pragma SEG_FUNCDEF(numhead_03) - -sal_uLong SvNumReadHeader::BytesLeft() const -{ - sal_uLong nReadEnd = rStream.Tell(); - if (nReadEnd <= nDataEnd) - return nDataEnd-nReadEnd; - - OSL_FAIL("Fehler bei SvNumReadHeader::BytesLeft"); - return 0; -} - -// ----------------------------------------------------------------------- - -//#pragma SEG_FUNCDEF(numhead_04) - -SvNumWriteHeader::SvNumWriteHeader(SvStream& rNewStream, sal_uLong nDefault) : - rStream( rNewStream ) -{ - nDataSize = nDefault; - rStream << nDataSize; - nDataPos = rStream.Tell(); -} - -//#pragma SEG_FUNCDEF(numhead_05) - -SvNumWriteHeader::~SvNumWriteHeader() -{ - sal_uLong nPos = rStream.Tell(); - - if ( nPos - nDataPos != nDataSize ) // Default getroffen? - { - nDataSize = nPos - nDataPos; - rStream.Seek(nDataPos - sizeof(sal_uInt32)); - rStream << nDataSize; // Groesse am Anfang eintragen - rStream.Seek(nPos); - } -} -*/ - -// ======================================================================= - //#pragma SEG_FUNCDEF(numhead_06) //! mit Skip() synchron diff --git a/svl/source/numbers/numhead.hxx b/svl/source/numbers/numhead.hxx index d5b2a8ae444f..9e7bd2ab6bc1 100644 --- a/svl/source/numbers/numhead.hxx +++ b/svl/source/numbers/numhead.hxx @@ -22,38 +22,6 @@ #include <tools/stream.hxx> -// ----------------------------------------------------------------------- - - // "Automatischer" Record-Header mit Groessenangabe - -/* wird fuer SvNumberFormatter nicht gebraucht -class SvNumReadHeader -{ -private: - SvStream& rStream; - sal_uLong nDataEnd; - -public: - SvNumReadHeader(SvStream& rNewStream); - ~SvNumReadHeader(); - - sal_uLong BytesLeft() const; -}; - -class SvNumWriteHeader -{ -private: - SvStream& rStream; - sal_uLong nDataPos; - sal_uLong nDataSize; - -public: - SvNumWriteHeader(SvStream& rNewStream, sal_uLong nDefault = 0); - ~SvNumWriteHeader(); -}; - -*/ - // Header mit Groessenangaben fuer mehrere Objekte class ImpSvNumMultipleReadHeader |