Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

dedupe: Remove unused code #15083

Merged
merged 1 commit into from
Dec 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 0 additions & 13 deletions lib/dedupe.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,6 @@ function Deduper (where, dryrun) {
}
util.inherits(Deduper, Installer)

Deduper.prototype.normalizeTree = function (log, cb) {
validate('OF', arguments)
log.silly('dedupe', 'normalizeTree')
// If we're looking globally only look at the one package we're operating on
if (npm.config.get('global')) {
var args = this.args
this.currentTree.children = this.currentTree.children.filter(function (child) {
return args.filter(function (arg) { return arg === moduleName(child) }).length
})
}
Installer.prototype.normalizeTree.call(this, log, cb)
}

Deduper.prototype.loadIdealTree = function (cb) {
validate('F', arguments)
log.silly('install', 'loadIdealTree')
Expand Down