diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index c225455b24..154b9c667d 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -519,14 +519,18 @@ The `Server.listenFD()` method was deprecated and removed. Please use ### DEP0022: `os.tmpDir()` -Type: Runtime +Type: End-of-Life -The `os.tmpDir()` API is deprecated. Please use [`os.tmpdir()`][] instead. +The `os.tmpDir()` API iws deprecated in Node.js 7.0.0 and has since been +removed. Please use [`os.tmpdir()`][] instead. ### DEP0023: `os.getNetworkInterfaces()` diff --git a/lib/os.js b/lib/os.js index 2cce09211c..f986b1cf87 100644 --- a/lib/os.js +++ b/lib/os.js @@ -28,7 +28,6 @@ const { const { safeGetenv } = internalBinding('credentials'); const constants = internalBinding('constants').os; -const { deprecate } = require('internal/util'); const isWindows = process.platform === 'win32'; const { @@ -83,9 +82,6 @@ getUptime[SymbolToPrimitive] = () => getUptime(); const kEndianness = isBigEndian ? 'BE' : 'LE'; -const tmpDirDeprecationMsg = - 'os.tmpDir() is deprecated. Use os.tmpdir() instead.'; - const avgValues = new Float64Array(3); function loadavg() { @@ -285,9 +281,6 @@ module.exports = { type: getOSType, userInfo, uptime: getUptime, - - // Deprecated APIs - tmpDir: deprecate(tmpdir, tmpDirDeprecationMsg, 'DEP0022') }; ObjectDefineProperties(module.exports, {