summaryrefslogtreecommitdiff
path: root/lib/util.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-01-07 14:11:47 -0500
committercjihrig <cjihrig@gmail.com>2019-01-10 09:00:22 -0500
commit29d3d1ea135c5d5692c3fcd9fb9091efa1db5760 (patch)
tree658d24a552d774d6ea6ed7c066bd5cbaebd11ce0 /lib/util.js
parenta665d13ad9fe40092be74d32652c1301b1db7550 (diff)
downloadnode-new-29d3d1ea135c5d5692c3fcd9fb9091efa1db5760.tar.gz
lib: move DEP0029 to end of life
PR-URL: https://github.com/nodejs/node/pull/25377 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/util.js b/lib/util.js
index 160904d28a..6333dcc8ba 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -324,13 +324,6 @@ function _extend(target, source) {
return target;
}
-// Deprecated old stuff.
-function error(...args) {
- for (var i = 0, len = args.length; i < len; ++i) {
- process.stderr.write(`${args[i]}\n`);
- }
-}
-
function callbackifyOnRejected(reason, cb) {
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
// Because `null` is a special error value in callbacks which means "no error
@@ -421,10 +414,5 @@ module.exports = exports = {
promisify,
TextDecoder,
TextEncoder,
- types,
-
- // Deprecated Old Stuff
- error: deprecate(error,
- 'util.error is deprecated. Use console.error instead.',
- 'DEP0029')
+ types
};