summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-06-10 00:56:06 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-06-10 00:56:06 +0900
commit2ac4d8bf32ef72e22b1feaef300b604a50cdc6d2 (patch)
treef0d087fa3185cb8a7b8a7be3eb5a2268ae67f9f2 /sot
parentcfe98a1305202419f224a31e54cd37e64401fa4f (diff)
nuke dead code
Change-Id: I666791b2a2bb817d59625868d5e2df1a9341b2ff
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stg.cxx20
-rw-r--r--sot/source/sdstor/ucbstorage.cxx19
2 files changed, 0 insertions, 39 deletions
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx
index 1f8b5bd66bce..92512286be18 100644
--- a/sot/source/sdstor/stg.cxx
+++ b/sot/source/sdstor/stg.cxx
@@ -556,11 +556,6 @@ void Storage::FillInfoList( SvStorageInfoList* pList ) const
BaseStorage* Storage::OpenUCBStorage( const String& rName, StreamMode m, sal_Bool bDirect )
{
OSL_FAIL("Not supported!");
-/*
- BaseStorage* pStorage = new Storage( pIo, NULL, m );
- SetError( ERRCODE_IO_NOTSUPPORTED );
- return pStorage;
- */
return OpenStorage( rName, m, bDirect );
}
@@ -717,14 +712,6 @@ sal_Bool Storage::CopyTo( const String& rElem, BaseStorage* pDest, const String&
StgDirEntry* pElem = pIo->pTOC->Find( *pEntry, rElem );
if( pElem )
{
- /*
- this lines are misterious !!! MM
- if( !pElem->IsContained( pDest->pEntry ) )
- {
- SetError( SVSTREAM_ACCESS_DENIED );
- return sal_False;
- }
- */
if( pElem->aEntry.GetType() == STG_STORAGE )
{
// copy the entire storage
@@ -789,13 +776,6 @@ sal_Bool Storage::CopyTo( BaseStorage* pDest ) const
return sal_False;
}
Storage* pThis = (Storage*) this;
- /*
- if( !pThis->pEntry->IsContained( pDest->pEntry ) )
- {
- SetError( SVSTREAM_ACCESS_DENIED );
- return sal_False;
- }
- */
pDest->SetClassId( GetClassId() );
pDest->SetDirty();
SvStorageInfoList aList;
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 7fdd53589998..e8b809d66b27 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -1355,16 +1355,6 @@ sal_uLong UCBStorageStream::Read( void * pData, sal_uLong nSize )
sal_uLong UCBStorageStream::Write( const void* pData, sal_uLong nSize )
{
-/*
- // mba: does occur in writer !
- if ( pImp->m_bCommited )
- {
- OSL_FAIL("Writing while commit is in progress!" );
- return 0;
- }
-*/
- // pImp->m_bModified = sal_True;
- //return pImp->m_pStream->Write( pData, nSize );
return pImp->PutData( pData, nSize );
}
@@ -1389,15 +1379,6 @@ void UCBStorageStream::Flush()
sal_Bool UCBStorageStream::SetSize( sal_uLong nNewSize )
{
-/*
- if ( pImp->m_bCommited )
- {
- OSL_FAIL("Changing stream size while commit is in progress!" );
- return sal_False;
- }
-*/
- // pImp->m_bModified = sal_True;
- //return pImp->m_pStream->SetStreamSize( nNewSize );
pImp->SetSize( nNewSize );
return !pImp->GetError();
}