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 <[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 b221379 commit 3225601

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

‎lib/net.js‎

Lines changed: 0 additions & 10 deletions
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-
returnstream.Readable.prototype.read.call(this,n);
376-
377-
this.read=stream.Readable.prototype.read;
378-
this._consuming=true;
379-
returnthis.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)