diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2011-03-25 12:20:34 +0100 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2011-03-25 12:20:34 +0100 |
commit | d699dafe5b8c6f85b5d8ec533b6a9b7618acc288 (patch) | |
tree | 3d9f54e0586dbb6b79edb5c5a54a91cec3749d13 /package | |
parent | 4b65a6b7a8c4b3bda25487d2b04a0f2be2cabc3e (diff) |
mav60: remove unnecessary assertions
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zippackage/ZipPackageFolder.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/package/source/zippackage/ZipPackageFolder.cxx b/package/source/zippackage/ZipPackageFolder.cxx index 01cfa79d47cb..0d78fe42cd34 100644 --- a/package/source/zippackage/ZipPackageFolder.cxx +++ b/package/source/zippackage/ZipPackageFolder.cxx @@ -453,7 +453,6 @@ bool ZipPackageFolder::saveChild( const ::rtl::OUString &rShortName, const Conte } else { - VOS_ENSURE( 0, "The package component requires that every stream either be FROM a package or it must support XSeekable!" ); bSuccess = false; return bSuccess; } @@ -461,7 +460,6 @@ bool ZipPackageFolder::saveChild( const ::rtl::OUString &rShortName, const Conte } catch ( uno::Exception& ) { - VOS_ENSURE( 0, "The stream provided to the package component has problems!" ); bSuccess = false; return bSuccess; } @@ -535,7 +533,6 @@ bool ZipPackageFolder::saveChild( const ::rtl::OUString &rShortName, const Conte if ( !xStream.is() ) { // Make sure that we actually _got_ a new one ! - VOS_ENSURE( 0, "ZipPackageStream didn't have a stream associated with it, skipping!" ); bSuccess = false; return bSuccess; } @@ -564,12 +561,10 @@ bool ZipPackageFolder::saveChild( const ::rtl::OUString &rShortName, const Conte } catch ( ZipException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); bSuccess = false; } catch ( IOException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); bSuccess = false; } } @@ -591,7 +586,6 @@ bool ZipPackageFolder::saveChild( const ::rtl::OUString &rShortName, const Conte if ( !xStream.is() ) { // Make sure that we actually _got_ a new one ! - VOS_ENSURE( 0, "ZipPackageStream didn't have a stream associated with it, skipping!" ); bSuccess = false; return bSuccess; } @@ -622,12 +616,10 @@ bool ZipPackageFolder::saveChild( const ::rtl::OUString &rShortName, const Conte } catch ( ZipException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); bSuccess = false; } catch ( IOException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); bSuccess = false; } @@ -714,12 +706,10 @@ void ZipPackageFolder::saveContents( ::rtl::OUString &rPath, std::vector < uno:: } catch ( ZipException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); bWritingFailed = true; } catch ( IOException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); bWritingFailed = true; } } |