Browse Source

zlib: remove unneeded property

PR-URL: https://github.com/nodejs/node/pull/7987
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
v7.x
Jan Schär 8 years ago
committed by Anna Henningsen
parent
commit
b635f7b0e7
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 5
      src/node_zlib.cc

5
src/node_zlib.cc

@ -54,7 +54,6 @@ class ZCtx : public AsyncWrap {
public:
ZCtx(Environment* env, Local<Object> wrap, node_zlib_mode mode)
: AsyncWrap(env, wrap, AsyncWrap::PROVIDER_ZLIB),
chunk_size_(0),
dictionary_(nullptr),
dictionary_len_(0),
err_(0),
@ -179,9 +178,6 @@ class ZCtx : public AsyncWrap {
ctx->strm_.next_out = out;
ctx->flush_ = flush;
// set this so that later on, I can easily tell how much was written.
ctx->chunk_size_ = out_len;
if (!async) {
// sync version
ctx->env()->PrintSyncTrace();
@ -625,7 +621,6 @@ class ZCtx : public AsyncWrap {
static const int kDeflateContextSize = 16384; // approximate
static const int kInflateContextSize = 10240; // approximate
int chunk_size_;
Bytef* dictionary_;
size_t dictionary_len_;
int err_;

Loading…
Cancel
Save