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; }