Skip to content

Commit 6ed4e69

Browse files
addaleaxMylesBorins
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 4d78eb8 commit 6ed4e69

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
@@ -377,15 +377,6 @@ function writeAfterFIN(chunk, encoding, cb) {
377377
}
378378
}
379379

380-
Socket.prototype.read = function(n) {
381-
if (n === 0)
382-
return stream.Readable.prototype.read.call(this, n);
383-
384-
this.read = stream.Readable.prototype.read;
385-
this._consuming = true;
386-
return this.read(n);
387-
};
388-
389380
Socket.prototype.setTimeout = function(msecs, callback) {
390381
if (msecs === 0) {
391382
timers.unenroll(this);

0 commit comments

Comments
 (0)