zlib: remove unneeded property · nodejs/node@b635f7b

Original file line numberDiff line numberDiff line change

@@ -54,7 +54,6 @@ class ZCtx : public AsyncWrap {

5454

public:

5555

ZCtx(Environment* env, Local<Object> wrap, node_zlib_mode mode)

5656

: AsyncWrap(env, wrap, AsyncWrap::PROVIDER_ZLIB),

57-

chunk_size_(0),

5857

dictionary_(nullptr),

5958

dictionary_len_(0),

6059

err_(0),

@@ -179,9 +178,6 @@ class ZCtx : public AsyncWrap {

179178

ctx->strm_.next_out = out;

180179

ctx->flush_ = flush;

181180
182-

// set this so that later on, I can easily tell how much was written.

183-

ctx->chunk_size_ = out_len;

184-
185181

if (!async) {

186182

// sync version

187183

ctx->env()->PrintSyncTrace();

@@ -625,7 +621,6 @@ class ZCtx : public AsyncWrap {

625621

static const int kDeflateContextSize = 16384; // approximate

626622

static const int kInflateContextSize = 10240; // approximate

627623
628-

int chunk_size_;

629624

Bytef* dictionary_;

630625

size_t dictionary_len_;

631626

int err_;