Skip to content

Commit

Permalink
zlib: remove unneeded property
Browse files Browse the repository at this point in the history
PR-URL: #7987
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Brian White <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
  • Loading branch information
jscissr authored and cjihrig committed Aug 10, 2016
1 parent ce776d2 commit 909254c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/node_zlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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_;
Expand Down

0 comments on commit 909254c

Please sign in to comment.