summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-27 00:06:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-29 09:56:06 +0100
commitfa19c5ec0844456a485cb7eb4a64f9d9c6d678bf (patch)
treea2426854601f2dff447fee8438badd1397959667 /sot
parentfea6627b6170a2921d3cac228f857c8bf9f70def (diff)
callcatcher: various
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgdir.cxx25
-rw-r--r--sot/source/sdstor/stgdir.hxx1
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& );
};