From 1a960d8275369bc069c0eb29fb5fa97903d33754 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 14 Mar 2016 17:15:01 -0700 Subject: [PATCH] zlib: remove internal-ish unused event WIP, probably less desirable than the other proposed fix, which also might be undesirable, but letting people comment just in case. Still needs a test. Refs: https://github.com/nodejs/node/issues/1668 --- lib/zlib.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/zlib.js b/lib/zlib.js index 3e6f7b187632f2..8bb03342ee610b 100644 --- a/lib/zlib.js +++ b/lib/zlib.js @@ -463,14 +463,8 @@ Zlib.prototype.close = function(callback) { this._closed = true; this._handle.close(); - - process.nextTick(emitCloseNT, this); }; -function emitCloseNT(self) { - self.emit('close'); -} - Zlib.prototype._transform = function(chunk, encoding, cb) { var flushFlag; var ws = this._writableState;