mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
net: remove Socket.prototoype.read
Unused since 34b535f4ca.
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
4d78eb8663
commit
6ed4e690e4
1 file changed
-9
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user