diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 9e386b1bd9eb0f..98e5725ee6cb18 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -638,7 +638,7 @@ Type: End-of-Life ### DEP0073: Several internal properties of net.Server -Type: Runtime +Type: End-of-Life Accessing several internal, undocumented properties of `net.Server` instances with inappropriate names has been deprecated. diff --git a/lib/net.js b/lib/net.js index 93b2279c7b167e..0125e2667d13ae 100644 --- a/lib/net.js +++ b/lib/net.js @@ -1734,34 +1734,6 @@ if (process.platform === 'win32') { _setSimultaneousAccepts = function(handle) {}; } -// TODO(addaleax): Remove these after the Node 9.x branch cut. -Object.defineProperty(Server.prototype, '_usingSlaves', { - get: internalUtil.deprecate(function() { - return this._usingWorkers; - }, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'), - set: internalUtil.deprecate((val) => { - this._usingWorkers = val; - }, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'), - configurable: true, enumerable: false -}); - -Object.defineProperty(Server.prototype, '_slaves', { - get: internalUtil.deprecate(function() { - return this._workers; - }, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'), - set: internalUtil.deprecate((val) => { - this._workers = val; - }, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'), - configurable: true, enumerable: false -}); - -Object.defineProperty(Server.prototype, '_setupSlave', { - value: internalUtil.deprecate(function(socketList) { - return this._setupWorker(socketList); - }, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'), - configurable: true, enumerable: false -}); - module.exports = { _createServerHandle: createServerHandle, _normalizeArgs: normalizeArgs,