diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 13ad8efbad11b5..076047ace6f2ad 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -483,6 +483,9 @@ The [`Server.connections`][] property is deprecated. Please use the ### DEP0021: Server.listenFD -Type: Runtime +Type: End-of-Life -The `Server.listenFD()` method is deprecated. Please use +The `Server.listenFD()` method was deprecated and removed. Please use [`Server.listen({fd: })`][] instead. diff --git a/lib/net.js b/lib/net.js index 99d3fc2ed7b6bf..86505a9a4510a5 100644 --- a/lib/net.js +++ b/lib/net.js @@ -1590,12 +1590,6 @@ Object.defineProperty(Socket.prototype, '_handle', { set(v) { return this[kHandle] = v; } }); - -Server.prototype.listenFD = deprecate(function(fd, type) { - return this.listen({ fd: fd }); -}, 'Server.listenFD is deprecated. Use Server.listen({fd: }) instead.', - 'DEP0021'); - Server.prototype._setupWorker = function(socketList) { this._usingWorkers = true; this._workers.push(socketList);