Skip to content

Commit b2fc8da

Browse files
committed
net: remove Socket.prototype.listen
The function was never documented and now throws a TypeError if used.
1 parent 817d4ad commit b2fc8da

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
@@ -380,15 +380,6 @@ Socket.prototype.read = function(n) {
380380
return this.read(n);
381381
};
382382

383-
384-
// FIXME(joyeecheung): this method is neither documented nor tested
385-
Socket.prototype.listen = function() {
386-
debug('socket.listen');
387-
this.on('connection', arguments[0]);
388-
listenInCluster(this, null, null, null);
389-
};
390-
391-
392383
Socket.prototype.setTimeout = function(msecs, callback) {
393384
if (msecs === 0) {
394385
timers.unenroll(this);

0 commit comments

Comments
 (0)