Skip to content

Commit

Permalink
net: remove Socket.prototype.listen
Browse files Browse the repository at this point in the history
The function was never documented and now throws a TypeError if used.

PR-URL: #13735
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
  • Loading branch information
BridgeAR committed Dec 12, 2017
1 parent b961d9f commit e17dba7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e17dba7

Please sign in to comment.