aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/util.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2016-08-18 14:01:44 -0700
committerJames M Snell <jasnell@gmail.com>2016-09-02 13:15:56 -0700
commit7b73f559029a10474b74a83bfb1117ab512785d4 (patch)
tree8d5d95290aa7204a0af7dd80cb5ce5b21dc6eb42 /lib/internal/util.js
parentb50557b51b3a2296b94fe1566e88d56fa2f44ebc (diff)
downloadandroid-node-v8-7b73f559029a10474b74a83bfb1117ab512785d4.tar.gz
android-node-v8-7b73f559029a10474b74a83bfb1117ab512785d4.tar.bz2
android-node-v8-7b73f559029a10474b74a83bfb1117ab512785d4.zip
internal/util: remove printDeprecationWarning
Removes the internal/util printDeprecationWarning method PR-URL: https://github.com/nodejs/node/pull/8166 Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'lib/internal/util.js')
-rw-r--r--lib/internal/util.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/internal/util.js b/lib/internal/util.js
index dae45b0ebb..fd1f3b487c 100644
--- a/lib/internal/util.js
+++ b/lib/internal/util.js
@@ -19,16 +19,6 @@ exports.deprecate = function(fn, msg) {
return exports._deprecate(fn, msg);
};
-// All the internal deprecations have to use this function only, as this will
-// prepend the prefix to the actual message.
-exports.printDeprecationMessage = function(msg, warned, ctor) {
- if (warned || process.noDeprecation)
- return true;
- process.emitWarning(msg, 'DeprecationWarning',
- ctor || exports.printDeprecationMessage);
- return true;
-};
-
exports.error = function(msg) {
const fmt = `${prefix}${msg}`;
if (arguments.length > 1) {