diff --git a/lib/net.js b/lib/net.js index 5d99b00662d..48dd690e89d 100644 --- a/lib/net.js +++ b/lib/net.js @@ -397,15 +397,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) { // Type checking identical to timers.enroll() msecs = validateTimerDuration(msecs);