diff options
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgdir.cxx | 25 | ||||
-rw-r--r-- | sot/source/sdstor/stgdir.hxx | 1 |
2 files changed, 0 insertions, 26 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx index fc9610a6af3b..ad1e975faa94 100644 --- a/sot/source/sdstor/stgdir.cxx +++ b/sot/source/sdstor/stgdir.cxx @@ -475,31 +475,6 @@ sal_Int32 StgDirEntry::Write( const void* p, sal_Int32 nLen ) return nLen; } -// Copy the data of one entry into another entry. - -void StgDirEntry::Copy( StgDirEntry& rDest ) -{ - sal_Int32 n = GetSize(); - if( rDest.SetSize( n ) && n ) - { - sal_uInt8 aTempBytes[ 4096 ]; - void* p = static_cast<void*>( aTempBytes ); - Seek( 0L ); - rDest.Seek( 0L ); - while( n ) - { - sal_Int32 nn = n; - if( nn > 4096 ) - nn = 4096; - if( Read( p, nn ) != nn ) - break; - if( rDest.Write( p, nn ) != nn ) - break; - n -= nn; - } - } -} - void StgDirEntry::Copy( BaseStorageStream& rDest ) { sal_Int32 n = GetSize(); diff --git a/sot/source/sdstor/stgdir.hxx b/sot/source/sdstor/stgdir.hxx index ccb12c4762d7..f260d42de3e8 100644 --- a/sot/source/sdstor/stgdir.hxx +++ b/sot/source/sdstor/stgdir.hxx @@ -96,7 +96,6 @@ public: sal_Int32 Tell() { return nPos; } sal_Int32 Read( void*, sal_Int32 ); sal_Int32 Write( const void*, sal_Int32 ); - void Copy( StgDirEntry& ); void Copy( BaseStorageStream& ); }; |