diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-07-13 22:20:57 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-07-14 08:19:57 +0200 |
commit | 1b4f6e746d0dcdea0603d962336a3dd173d279bd (patch) | |
tree | 6b92a8df0b4aab8acbe4d84ed7fa345edd76a2f3 | |
parent | 3dc7859eb7801ffd801d214654385c6133a41452 (diff) |
callcatcher: cleanup INetIStream
-rw-r--r-- | tools/inc/tools/inetstrm.hxx | 3 | ||||
-rw-r--r-- | tools/source/inet/inetstrm.cxx | 42 |
2 files changed, 0 insertions, 45 deletions
diff --git a/tools/inc/tools/inetstrm.hxx b/tools/inc/tools/inetstrm.hxx index aa662555c14e..4d82c8de9791 100644 --- a/tools/inc/tools/inetstrm.hxx +++ b/tools/inc/tools/inetstrm.hxx @@ -68,9 +68,6 @@ public: virtual ~INetIStream (void); int Read (sal_Char *pData, sal_uIntPtr nSize); - - static void Decode64 (SvStream& rIn, SvStream& rOut); - static void Encode64 (SvStream& rIn, SvStream& rOut); }; /* diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx index ff90411c8cee..7a04ea24af20 100644 --- a/tools/source/inet/inetstrm.cxx +++ b/tools/source/inet/inetstrm.cxx @@ -173,48 +173,6 @@ int INetIStream::Read (sal_Char *pData, sal_uIntPtr nSize) return GetData (pData, nSize); } -/* - * Decode64. - */ -void INetIStream::Decode64 (SvStream& rIn, SvStream& rOut) -{ - INetMessage aMsg; - aMsg.SetDocumentLB(new SvAsyncLockBytes(&rOut, sal_False)); - - INetMessageDecode64Stream_Impl aStream (8192); - aStream.SetTargetMessage (&aMsg); - - sal_Char* pBuf = new sal_Char[8192]; - - int nRead = 0; - while ((nRead = rIn.Read (pBuf, 8192)) > 0) - aStream.Write( pBuf, nRead ); - aStream.Write ("\r\n", 2); - - delete[] pBuf; -} - -/* - * Encode64. - */ -void INetIStream::Encode64 (SvStream& rIn, SvStream& rOut) -{ - INetMessage aMsg; - aMsg.SetDocumentLB ( - new SvLockBytes (&rIn, sal_False)); - - INetMessageEncode64Stream_Impl aStream (8192); - aStream.SetSourceMessage (&aMsg); - - sal_Char* pBuf = new sal_Char[8192]; - - int nRead = 0; - while ((nRead = aStream.Read (pBuf, 8192)) > 0) - rOut.Write( pBuf, nRead ); - - delete[] pBuf; -} - /*========================================================================= * * INetOStream Implementation. |