Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 909254c

Browse filesBrowse files
jscissrcjihrig
authored andcommitted
zlib: remove unneeded property
PR-URL: #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>
1 parent ce776d2 commit 909254c
Copy full SHA for 909254c

File tree

Expand file treeCollapse file tree

1 file changed

+0
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-5
lines changed
Open diff view settings
Collapse file

‎src/node_zlib.cc‎

Copy file name to clipboardExpand all lines: src/node_zlib.cc
-5Lines changed: 0 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.