summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2010-04-12 13:30:18 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2010-04-12 13:30:18 +0000
commit7075ddccf64fbb59f002dbd29276ade0147ab123 (patch)
treede95fa5fabb0f1299f14dc334ff3ccc5c504a20c /sc
parent6c82ade8526327ebb255b99ba29d214b7c6c24d4 (diff)
dba321a: #i10000# remove dublicate method: static void lcl_SkipBytesInBlocks (merge problem
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 91008bfa5..be873cccf 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -1592,26 +1592,6 @@ static void lcl_SkipBytesInBlocks( const uno::Reference< io::XInputStream >& xIn
}
}
-static void lcl_SkipBytesInBlocks( const uno::Reference< io::XInputStream >& xInput, sal_Int32 nBytesToSkip )
-{
- // skipBytes in zip stream is implemented as reading.
- // For now, split into several calls to avoid allocating a large buffer.
- // Later, skipBytes should be changed.
-
- const sal_Int32 nMaxSize = 32*1024;
-
- if ( nBytesToSkip > 0 )
- {
- sal_Int32 nRemaining = nBytesToSkip;
- while ( nRemaining > 0 )
- {
- sal_Int32 nSkip = std::min( nRemaining, nMaxSize );
- xInput->skipBytes( nSkip );
- nRemaining -= nSkip;
- }
- }
-}
-
void ScXMLExport::CopySourceStream( sal_Int32 nStartOffset, sal_Int32 nEndOffset, sal_Int32& rNewStart, sal_Int32& rNewEnd )
{
uno::Reference<xml::sax::XDocumentHandler> xHandler = GetDocHandler();