diff --git a/lib/net.js b/lib/net.js index 54c161c382a306..51a06d6eb8e1bc 100644 --- a/lib/net.js +++ b/lib/net.js @@ -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);