diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-16 19:10:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-17 13:06:48 +0100 |
commit | 144dd13818581e8753c2b0a8707ffe047837f273 (patch) | |
tree | 40036004ddba41e830122d4245412c112640e7f8 /oox | |
parent | e501580dec3ddf3ca55c97a04a3f1a2b1f802eaa (diff) |
loplugin:unusedmethods
Change-Id: Ib0a72355972662c6b902bca9a527be91fb3e1d17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164930
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/helper/binaryoutputstream.cxx | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/oox/source/helper/binaryoutputstream.cxx b/oox/source/helper/binaryoutputstream.cxx index 50ce7f11ce9e..6e743ffbcc68 100644 --- a/oox/source/helper/binaryoutputstream.cxx +++ b/oox/source/helper/binaryoutputstream.cxx @@ -129,56 +129,6 @@ void BinaryOutputStream::writeCompressedUnicodeArray( const OUString& rString, b writeUnicodeArray( rString ); } -SequenceOutputStream::SequenceOutputStream( StreamDataSequence & rData ) : - BinaryStreamBase( true ), - mpData( &rData ), - mnPos( 0 ) -{ -} - -void SequenceOutputStream::writeData( const StreamDataSequence& rData, size_t nAtomSize ) -{ - if( mpData && rData.hasElements() ) - writeMemory( rData.getConstArray(), rData.getLength(), nAtomSize ); -} - -void SequenceOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_t /*nAtomSize*/ ) -{ - if( mpData && (nBytes > 0) ) - { - if( mpData->getLength() - mnPos < nBytes ) - mpData->realloc( mnPos + nBytes ); - memcpy( mpData->getArray() + mnPos, pMem, static_cast< size_t >( nBytes ) ); - mnPos += nBytes; - } -} - -sal_Int64 SequenceOutputStream::size() const -{ - return mpData ? mpData->getLength() : -1; -} - -sal_Int64 SequenceOutputStream::tell() const -{ - return mpData ? mnPos : -1; -} - -void SequenceOutputStream::seek( sal_Int64 nPos ) -{ - if( mpData ) - { - mnPos = getLimitedValue< sal_Int32, sal_Int64 >( nPos, 0, mpData->getLength() ); - mbEof = mnPos != nPos; - } -} - -void SequenceOutputStream::close() -{ - mpData = nullptr; - mbEof = true; -} - - } // namespace oox /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |