From 39e54d04804d1d8ad0d0dc10aad8ef89c2ff1e40 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 24 Jan 2012 21:36:38 +0000 Subject: move ugly WriteLines out of SvStream to beside sole user --- tools/inc/tools/stream.hxx | 1 - tools/source/stream/stream.cxx | 15 --------------- 2 files changed, 16 deletions(-) (limited to 'tools') diff --git a/tools/inc/tools/stream.hxx b/tools/inc/tools/stream.hxx index 9fcb72904732..d63b7d3c3059 100644 --- a/tools/inc/tools/stream.hxx +++ b/tools/inc/tools/stream.hxx @@ -383,7 +383,6 @@ public: sal_Bool ReadLine( ByteString& rStr ); sal_Bool ReadLine( rtl::OString& rStr ); sal_Bool WriteLine( const rtl::OString& rStr ); - sal_Bool WriteLines( const ByteString& rStr ); sal_Bool ReadByteStringLine( String& rStr, rtl_TextEncoding eSrcCharSet ); sal_Bool WriteByteStringLine( const String& rStr, rtl_TextEncoding eDestCharSet ); diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 0e899050fced..db84400b77f9 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -930,21 +930,6 @@ sal_Bool SvStream::WriteLine(const rtl::OString& rStr) return nError == SVSTREAM_OK; } -/************************************************************************* -|* -|* Stream::WriteLines() -|* -*************************************************************************/ - -sal_Bool SvStream::WriteLines( const ByteString& rStr ) -{ - ByteString aStr( rStr ); - aStr.ConvertLineEnd( eLineDelimiter ); - Write( aStr.GetBuffer(), aStr.Len() ); - endl( *this ); - return (sal_Bool)(nError == SVSTREAM_OK); -} - /************************************************************************* |* |* Stream::WriteUniOrByteChar() -- cgit