From 1004b9b4ad39cf24fc5d524d6fadcaadcb1420bf Mon Sep 17 00:00:00 2001 From: Wang Xinyong Date: Fri, 3 Feb 2017 13:30:35 +0800 Subject: [PATCH] stream: remove unused `ranOut` from ReadableState flag `ranOut` became unused since 0f8de5e1f96a07, but 0f8de5e1f96a07 did not remove it. PR-URL: https://github.com/nodejs/node/pull/11139 Reviewed-By: Matteo Collina Reviewed-By: Anna Henningsen --- lib/_stream_readable.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index d6af8589f3..49ea08e857 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -81,10 +81,6 @@ function ReadableState(options, stream) { // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; - // when piping, we only care about 'readable' events that happen - // after read()ing all the bytes and not getting any pushback. - this.ranOut = false; - // the number of writers that are awaiting a drain event in .pipe()s this.awaitDrain = 0;