diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-10-16 11:23:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-10-16 15:51:52 +0200 |
commit | 44bb2c82870f83776eb26d41aeb9defbee97b102 (patch) | |
tree | 6677d081c6d7c7344facae4a0aa9bb0b7b132825 /package/source/zipapi/Inflater.cxx | |
parent | 49c0e81e7d25def3ec85b0c06c82053a7246f030 (diff) |
loplugin:unusedfields
Change-Id: If05b87f1e6c19b15b03b2695921a582e078d0f1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175011
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'package/source/zipapi/Inflater.cxx')
-rw-r--r-- | package/source/zipapi/Inflater.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/package/source/zipapi/Inflater.cxx b/package/source/zipapi/Inflater.cxx index acabee88fb45..5a09415abe6c 100644 --- a/package/source/zipapi/Inflater.cxx +++ b/package/source/zipapi/Inflater.cxx @@ -136,10 +136,8 @@ sal_Int32 Inflater::doInflateBytes (Sequence < sal_Int8 > &rBuffer, sal_Int32 n InflaterBytes::InflaterBytes(bool bNoWrap) : bFinished(false), - bNeedDict(false), nOffset(0), nLength(0), - nLastInflateError(0), sInBuffer(nullptr) { pStream.reset(new z_stream); @@ -201,12 +199,9 @@ sal_Int32 InflaterBytes::doInflateBytes (sal_Int8* pOutBuffer, sal_Int32 nNewOff { if ( !pStream ) { - nLastInflateError = Z_STREAM_ERROR; return 0; } - nLastInflateError = 0; - pStream->next_in = reinterpret_cast<const unsigned char*>( sInBuffer + nOffset ); pStream->avail_in = nLength; pStream->next_out = reinterpret_cast < unsigned char* > ( pOutBuffer + nNewOffset ); @@ -229,15 +224,13 @@ sal_Int32 InflaterBytes::doInflateBytes (sal_Int8* pOutBuffer, sal_Int32 nNewOff return nNewLength - pStream->avail_out; case Z_NEED_DICT: - bNeedDict = true; nOffset += nLength - pStream->avail_in; nLength = pStream->avail_in; return 0; default: // it is no error, if there is no input or no output - if ( nLength && nNewLength ) - nLastInflateError = nResult; + break; } return 0; |