Skip to content

Commit

Permalink
stream: remove unused ranOut from ReadableState
Browse files Browse the repository at this point in the history
flag `ranOut` became unused since 0f8de5e,
but 0f8de5e did not remove it.

PR-URL: #11139
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
Wang Xinyong authored and mcollina committed Mar 3, 2017
1 parent 4897ae2 commit 1004b9b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/_stream_readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1004b9b

Please sign in to comment.