diff --git a/lib/net.js b/lib/net.js index dc71693a92c9eb..0f7586f9f748ac 100644 --- a/lib/net.js +++ b/lib/net.js @@ -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');