Skip to content

Commit b635f7b

Browse files
jscissraddaleax
authored andcommitted
zlib: remove unneeded property
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]>
1 parent 4c86fa3 commit b635f7b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/node_zlib.cc

-5
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_;

0 commit comments

Comments
 (0)