Kaydet (Commit) bfb45c2b authored tarafından Caolán McNamara's avatar Caolán McNamara

remove ugly and unused WriteUniOrByteStringLines

üst 548181a3
...@@ -495,12 +495,7 @@ public: ...@@ -495,12 +495,7 @@ public:
sal_Bool WriteUniOrByteStringLine( const String& rStr, rtl_TextEncoding eDestCharSet ); sal_Bool WriteUniOrByteStringLine( const String& rStr, rtl_TextEncoding eDestCharSet );
sal_Bool WriteUniOrByteStringLine( const String& rStr ) sal_Bool WriteUniOrByteStringLine( const String& rStr )
{ return WriteUniOrByteStringLine( rStr, GetStreamCharSet() ); } { return WriteUniOrByteStringLine( rStr, GetStreamCharSet() ); }
/// Write multiple lines of Unicode if eDestCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise write multiple lines of Bytecode converted to eDestCharSet,
/// CovertLineEnd is applied.
sal_Bool WriteUniOrByteStringLines( const String& rStr, rtl_TextEncoding eDestCharSet );
sal_Bool WriteUniOrByteStringLines( const String& rStr )
{ return WriteUniOrByteStringLines( rStr, GetStreamCharSet() ); }
/// Write a Unicode character if eDestCharSet==RTL_TEXTENCODING_UNICODE, /// Write a Unicode character if eDestCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise write as Bytecode converted to eDestCharSet. /// otherwise write as Bytecode converted to eDestCharSet.
/// This may result in more than one byte being written /// This may result in more than one byte being written
......
...@@ -974,14 +974,6 @@ sal_Bool SvStream::WriteUniStringLines( const String& rStr ) ...@@ -974,14 +974,6 @@ sal_Bool SvStream::WriteUniStringLines( const String& rStr )
return nError == SVSTREAM_OK; return nError == SVSTREAM_OK;
} }
sal_Bool SvStream::WriteUniOrByteStringLines( const String& rStr, rtl_TextEncoding eDestCharSet )
{
if ( eDestCharSet == RTL_TEXTENCODING_UNICODE )
return WriteUniStringLines( rStr );
else
return WriteByteStringLines( rStr, eDestCharSet );
}
/************************************************************************* /*************************************************************************
|* |*
|* Stream::WriteUniOrByteChar() |* Stream::WriteUniOrByteChar()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment