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 <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent d3569b6 commit ef78a1e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/net.js

-9
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)