aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/util.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-02-17 15:25:28 -0800
committerJames M Snell <jasnell@gmail.com>2017-02-19 12:33:19 -0800
commitbc44d2c3cdd816f8f85179a7551365f792ea4b59 (patch)
tree2f025360d5668b1203330f8b09938100275b07bc /lib/internal/util.js
parentb855dadae00b616c7669530a75d4e410f1b7d601 (diff)
downloadandroid-node-v8-bc44d2c3cdd816f8f85179a7551365f792ea4b59.tar.gz
android-node-v8-bc44d2c3cdd816f8f85179a7551365f792ea4b59.tar.bz2
android-node-v8-bc44d2c3cdd816f8f85179a7551365f792ea4b59.zip
util, debugger: remove internalUtil.error
The internalUtil.error() function was only used by _debugger.js. PR-URL: https://github.com/nodejs/node/pull/11448 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib/internal/util.js')
-rw-r--r--lib/internal/util.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/internal/util.js b/lib/internal/util.js
index 0a3cbe0232..4470770a99 100644
--- a/lib/internal/util.js
+++ b/lib/internal/util.js
@@ -16,19 +16,6 @@ exports.deprecate = function(fn, msg, code) {
return exports._deprecate(fn, msg, code);
};
-exports.error = function(msg) {
- const fmt = `${prefix}${msg}`;
- if (arguments.length > 1) {
- const args = new Array(arguments.length);
- args[0] = fmt;
- for (var i = 1; i < arguments.length; ++i)
- args[i] = arguments[i];
- console.error.apply(console, args);
- } else {
- console.error(fmt);
- }
-};
-
exports.trace = function(msg) {
console.trace(`${prefix}${msg}`);
};