Skip to content

Commit

Permalink
net: remove Socket.prototoype.read
Browse files Browse the repository at this point in the history
Unused since 34b535f.

PR-URL: #18568
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
addaleax authored and BethGriggs committed Apr 13, 2018
1 parent b221379 commit 3225601
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,6 @@ function writeAfterFIN(chunk, encoding, cb) {
}
}

Socket.prototype.read = function(n) {
if (n === 0)
return stream.Readable.prototype.read.call(this, n);

this.read = stream.Readable.prototype.read;
this._consuming = true;
return this.read(n);
};


// FIXME(joyeecheung): this method is neither documented nor tested
Socket.prototype.listen = function() {
debug('socket.listen');
Expand Down

0 comments on commit 3225601

Please sign in to comment.