diff options
Diffstat (limited to 'lib/utils/warn-deprecated.js')
-rw-r--r-- | lib/utils/warn-deprecated.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/utils/warn-deprecated.js b/lib/utils/warn-deprecated.js deleted file mode 100644 index ce690f78e..000000000 --- a/lib/utils/warn-deprecated.js +++ /dev/null @@ -1,28 +0,0 @@ -module.exports = warnDeprecated - -var log = require('npmlog') - -var deprecations = {} - -function warnDeprecated (type) { - return function warn (messages, instance) { - if (!instance) { - if (!deprecations[type]) { - deprecations[type] = {} - messages.forEach(function (m) { - log.warn(type, m) - }) - } - } else { - if (!deprecations[type]) - deprecations[type] = {} - - if (!deprecations[type][instance]) { - deprecations[type][instance] = true - messages.forEach(function (m) { - log.warn(type, m) - }) - } - } - } -} |