Skip to content

Commit ef78a1e

Browse files
addaleaxapapirovski
authored andcommitted
net: remove Socket.prototoype.read
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>
1 parent d3569b6 commit ef78a1e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/net.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,6 @@ function writeAfterFIN(chunk, encoding, cb) {
397397
}
398398
}
399399

400-
Socket.prototype.read = function(n) {
401-
if (n === 0)
402-
return stream.Readable.prototype.read.call(this, n);
403-
404-
this.read = stream.Readable.prototype.read;
405-
this._consuming = true;
406-
return this.read(n);
407-
};
408-
409400
Socket.prototype.setTimeout = function(msecs, callback) {
410401
// Type checking identical to timers.enroll()
411402
msecs = validateTimerDuration(msecs);

0 commit comments

Comments
 (0)