From 59711abf54961ab795b1d4adb67af1f5d6e9d3fc Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Sun, 3 Dec 2017 01:31:27 -0600 Subject: [PATCH] util: remove check for global.process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit process is explicitly passed by NativeModule now. PR-URL: https://github.com/nodejs/node/pull/17435 Reviewed-By: Timothy Gu Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Yuta Hiroto Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- lib/internal/util.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/internal/util.js b/lib/internal/util.js index e5a6803d4e5ee2..2cce2be5bf8eba 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -33,13 +33,6 @@ const codesWarned = {}; // Returns a modified function which warns once by default. // If --no-deprecation is set, then it is a no-op. function deprecate(fn, msg, code) { - // Allow for deprecating things in the process of starting up. - if (global.process === undefined) { - return function(...args) { - return deprecate(fn, msg).apply(this, args); - }; - } - if (process.noDeprecation === true) { return fn; }