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 <apapirovski@mac.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
addaleax authored and MylesBorins committed Feb 21, 2018
1 parent e7f8b4b commit 804393b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,15 +377,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);
};

Socket.prototype.setTimeout = function(msecs, callback) {
if (msecs === 0) {
timers.unenroll(this);
Expand Down

0 comments on commit 804393b

Please sign in to comment.