summaryrefslogtreecommitdiff
path: root/package/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-08-23 08:33:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-23 09:58:25 +0200
commitfcd990f208be4430157dca2d6093337f21cb079b (patch)
tree8b132e4081b8f4d9cc4f8aa71f6d937d4f65ef03 /package/source
parent3e7990faa4dda6022c63aebb2ac8f12b2bbc0731 (diff)
Some clean up after previous commit
Change-Id: Ie419c769c5d661d51c1b43b9808791dcf9e1725c
Diffstat (limited to 'package/source')
-rw-r--r--package/source/zipapi/XUnbufferedStream.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/package/source/zipapi/XUnbufferedStream.cxx b/package/source/zipapi/XUnbufferedStream.cxx
index 0688b5c9d557..9f289baab86e 100644
--- a/package/source/zipapi/XUnbufferedStream.cxx
+++ b/package/source/zipapi/XUnbufferedStream.cxx
@@ -32,13 +32,6 @@
#include <osl/mutex.hxx>
-#if 0
-// for debugging purposes here
-#include <com/sun/star/ucb/SimpleFileAccess.hpp>
-#include <comphelper/componentcontext.hxx>
-using namespace ::com::sun::star;
-#endif
-
using namespace ::com::sun::star;
using namespace com::sun::star::packages::zip::ZipConstants;
using namespace com::sun::star::io;
@@ -299,21 +292,6 @@ sal_Int32 SAL_CALL XUnbufferedStream::readBytes( Sequence< sal_Int8 >& aData, sa
if ( !m_xCipherContext.is() && !mbWrappedRaw )
maCRC.update( aData );
-#if 0
- // for debugging purposes here
- if ( mbWrappedRaw )
- {
- if ( 0 )
- {
- uno::Reference< uno::XComponentContext > xContext = comphelper::getProcessComponentContext();
- uno::Reference< ucb::XSimpleFileAccess2 > xAccess( SimpleFileAccess::create(xContext) );
- uno::Reference< io::XOutputStream > xOut = xAccess->openFileWrite(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "file:///d:/777/Encrypted/picture") ) );
- xOut->writeBytes( aData );
- xOut->closeOutput();
- }
- }
-#endif
-
if ( mnZipSize + maHeader.getLength() == mnMyCurrent && maCRC.getValue() != maEntry.nCrc )
throw ZipIOException( OUString( RTL_CONSTASCII_USTRINGPARAM( "The stream seems to be broken!" ) ),
Reference< XInterface >() );