From e17dba7a4553081a4ae84e4f27bf89e589e27fed Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 6 Dec 2017 14:48:37 -0200 Subject: [PATCH] net: remove Socket.prototype.listen The function was never documented and now throws a TypeError if used. PR-URL: https://github.com/nodejs/node/pull/13735 Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis Reviewed-By: Anatoli Papirovski --- lib/net.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/net.js b/lib/net.js index eec7619bc74d15..f962a848fad662 100644 --- a/lib/net.js +++ b/lib/net.js @@ -380,15 +380,6 @@ Socket.prototype.read = function(n) { return this.read(n); }; - -// FIXME(joyeecheung): this method is neither documented nor tested -Socket.prototype.listen = function() { - debug('socket.listen'); - this.on('connection', arguments[0]); - listenInCluster(this, null, null, null); -}; - - Socket.prototype.setTimeout = function(msecs, callback) { if (msecs === 0) { timers.unenroll(this);