MAPREDUCE-7388. Remove unused variable _eof in GzipCodec.cc (#4429)

Co-authored-by: cWX456268 <chenfengge1@huawei.com>
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
cfg1234 2022-07-09 01:51:49 +08:00 committed by GitHub
parent 96f8e5b6f4
commit fac895828f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View File

@ -135,7 +135,6 @@ GzipDecompressStream::GzipDecompressStream(InputStream * stream, uint32_t buffer
}
zstream->next_in = NULL;
zstream->avail_in = 0;
_eof = false;
}
GzipDecompressStream::~GzipDecompressStream() {
@ -156,7 +155,6 @@ int32_t GzipDecompressStream::read(void * buff, uint32_t length) {
if (zstream->avail_in == 0) {
int32_t rd = _stream->read(_buffer, _capacity);
if (rd <= 0) {
_eof = true;
size_t wt = zstream->next_out - (Bytef*)buff;
return wt > 0 ? wt : -1;
} else {

View File

@ -60,7 +60,6 @@ protected:
char * _buffer;
uint32_t _capacity;
void * _zstream;
bool _eof;
public:
GzipDecompressStream(InputStream * stream, uint32_t bufferSizeHint);