diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-13 09:12:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-13 11:43:37 +0100 |
commit | 26de77008f0ec1816b461c02eab831fcc36ca44b (patch) | |
tree | 8e3d37865cc6dca490c2e32d97867b481cccbe70 | |
parent | 811ccc4f3cef28a310d5638e309953eebb866925 (diff) |
remove unused Radix
-rw-r--r-- | tools/inc/tools/stream.hxx | 6 | ||||
-rw-r--r-- | tools/source/stream/stream.cxx | 9 |
2 files changed, 1 insertions, 14 deletions
diff --git a/tools/inc/tools/stream.hxx b/tools/inc/tools/stream.hxx index 22ea1a6462fb..800ee448d864 100644 --- a/tools/inc/tools/stream.hxx +++ b/tools/inc/tools/stream.hxx @@ -274,7 +274,6 @@ private: // Formatierung von Strings char cFiller; - sal_uInt8 nRadix; sal_uInt8 nPrecision; sal_uInt8 nWidth; sal_uInt8 nPrintfParams; @@ -395,10 +394,7 @@ public: SvStream& WriteByteString( const UniString& rStr ) { return WriteByteString( rStr, GetStreamCharSet() ); } SvStream& WriteByteString( const ByteString& rStr ); - void SetRadix( sal_uInt8 nRad ) - { nRadix = nRad; CreateFormatString(); } - sal_uInt8 GetRadix() const { return nRadix; } - void SetPrecision( sal_uInt8 nPrec ) +: void SetPrecision( sal_uInt8 nPrec ) { nPrecision = nPrec; CreateFormatString(); } sal_uInt8 GetPrecision() const { return nPrecision; } void SetWidth( sal_uInt8 nWid) diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 456c58404ddb..dbe3adbc2d15 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -466,7 +466,6 @@ void SvStream::ImpInit() eIOMode = STREAM_IO_DONTKNOW; nBufFree = 0; - nRadix = 10; nPrecision = 0; // all significant digits nWidth = 0; // default width cFiller = ' '; @@ -1997,10 +1996,6 @@ SvStream& SvStream::WriteNumber( long nLong ) { char buffer[256+12]; char pType[] = "ld"; // Nicht static! - if( nRadix == 16 ) - pType[1] = 'x'; - else if( nRadix == 8 ) - pType[1] = 'o'; ByteString aFStr( aFormatString); aFStr += pType; int nLen; @@ -2026,10 +2021,6 @@ SvStream& SvStream::WriteNumber( sal_uInt32 nUInt32 ) { char buffer[256+12]; char pType[] = "lu"; // Nicht static! - if( nRadix == 16 ) - pType[1] = 'x'; - else if( nRadix == 8 ) - pType[1] = 'o'; ByteString aFStr( aFormatString); aFStr += pType; int nLen; |