diff options
author | Xisco Faulí <anistenis@gmail.com> | 2011-03-21 12:55:40 +0100 |
---|---|---|
committer | Christina Rossmanith <ChrRossmanith@web.de> | 2011-03-21 12:55:58 +0100 |
commit | f6e0527033be682dbf6b60bd9b060fdd853ffe33 (patch) | |
tree | 2d5ee2a7bface7ce26de0ac42eeb55d6d8050475 /basic/source/runtime/iosys.cxx | |
parent | 41aed87d074878c3a38a7f982f5c2aaad9400189 (diff) |
Remove most of dead code inlibs-core (basic)
Diffstat (limited to 'basic/source/runtime/iosys.cxx')
-rwxr-xr-x | basic/source/runtime/iosys.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index cea9f7a01d3e..af0f5609be2c 100755 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -139,7 +139,6 @@ IMPL_LINK_INLINE_START( SbiInputDialog, Cancel, Window *, pWindow ) } IMPL_LINK_INLINE_END( SbiInputDialog, Cancel, Window *, pWindow ) -////////////////////////////////////////////////////////////////////////// SbiStream::SbiStream() : pStrm( 0 ) @@ -451,40 +450,6 @@ public: virtual void SetSize( sal_uIntPtr nSize ); }; -/* -sal_uIntPtr UCBErrorToSvStramError( ucb::IOErrorCode nError ) -{ - sal_uIntPtr eReturn = ERRCODE_IO_GENERAL; - switch( nError ) - { - case ucb::IOErrorCode_ABORT: eReturn = SVSTREAM_GENERALERROR; break; - case ucb::IOErrorCode_NOT_EXISTING: eReturn = SVSTREAM_FILE_NOT_FOUND; break; - case ucb::IOErrorCode_NOT_EXISTING_PATH: eReturn = SVSTREAM_PATH_NOT_FOUND; break; - case ucb::IOErrorCode_OUT_OF_FILE_HANDLES: eReturn = SVSTREAM_TOO_MANY_OPEN_FILES; break; - case ucb::IOErrorCode_ACCESS_DENIED: eReturn = SVSTREAM_ACCESS_DENIED; break; - case ucb::IOErrorCode_LOCKING_VIOLATION: eReturn = SVSTREAM_SHARING_VIOLATION; break; - - case ucb::IOErrorCode_INVALID_ACCESS: eReturn = SVSTREAM_INVALID_ACCESS; break; - case ucb::IOErrorCode_CANT_CREATE: eReturn = SVSTREAM_CANNOT_MAKE; break; - case ucb::IOErrorCode_INVALID_PARAMETER: eReturn = SVSTREAM_INVALID_PARAMETER; break; - - case ucb::IOErrorCode_CANT_READ: eReturn = SVSTREAM_READ_ERROR; break; - case ucb::IOErrorCode_CANT_WRITE: eReturn = SVSTREAM_WRITE_ERROR; break; - case ucb::IOErrorCode_CANT_SEEK: eReturn = SVSTREAM_SEEK_ERROR; break; - case ucb::IOErrorCode_CANT_TELL: eReturn = SVSTREAM_TELL_ERROR; break; - - case ucb::IOErrorCode_OUT_OF_MEMORY: eReturn = SVSTREAM_OUTOFMEMORY; break; - - case SVSTREAM_FILEFORMAT_ERROR: eReturn = SVSTREAM_FILEFORMAT_ERROR; break; - case ucb::IOErrorCode_WRONG_VERSION: eReturn = SVSTREAM_WRONGVERSION; - case ucb::IOErrorCode_OUT_OF_DISK_SPACE: eReturn = SVSTREAM_DISK_FULL; break; - - case ucb::IOErrorCode_BAD_CRC: eReturn = ERRCODE_IO_BADCRC; break; - } - return eReturn; -} -*/ - UCBStream::UCBStream( Reference< XInputStream > & rStm ) : xIS( rStm ) , xSeek( rStm, UNO_QUERY ) @@ -674,9 +639,6 @@ SbError SbiStream::Open { Reference< XStream > xIS = xSFI->openFileReadWrite( aNameStr ); pStrm = new UCBStream( xIS ); - // Open for writing is not implemented in ucb yet!!! - //Reference< XOutputStream > xIS = xSFI->openFileWrite( aNameStr ); - //pStrm = new UCBStream( xIS ); } else //if( nStrmMode & STREAM_READ ) { @@ -815,7 +777,6 @@ SbError SbiStream::Write( const ByteString& rBuf, sal_uInt16 n ) return nError; } -////////////////////////////////////////////////////////////////////////// // Zugriff auf das aktuelle I/O-System: @@ -825,7 +786,6 @@ SbiIoSystem* SbGetIoSystem() return pInst ? pInst->GetIoSystem() : NULL; } -////////////////////////////////////////////////////////////////////////// SbiIoSystem::SbiIoSystem() { |