Skip to content

Commit 3225601

Browse files
addaleaxBethGriggs
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 b221379 commit 3225601

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/net.js

-10
Original file line numberDiff line numberDiff line change
@@ -370,16 +370,6 @@ function writeAfterFIN(chunk, encoding, cb) {
370370
}
371371
}
372372

373-
Socket.prototype.read = function(n) {
374-
if (n === 0)
375-
return stream.Readable.prototype.read.call(this, n);
376-
377-
this.read = stream.Readable.prototype.read;
378-
this._consuming = true;
379-
return this.read(n);
380-
};
381-
382-
383373
// FIXME(joyeecheung): this method is neither documented nor tested
384374
Socket.prototype.listen = function() {
385375
debug('socket.listen');

0 commit comments

Comments
 (0)