Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2014-05-24 10:42:13 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-06-13 23:41:13 +0400
commit1c2938189122c0640b9403746a6bfed4d6142b27 (patch)
tree8c6c5776818acc47454bb514f58623f05f8f486a /lib/dedupe.js
parent626c3e4a7fb37159b79ab9b3af2c030f26540b0f (diff)
remove dead code and fix jshint warnings
Diffstat (limited to 'lib/dedupe.js')
-rw-r--r--lib/dedupe.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/dedupe.js b/lib/dedupe.js
index 1b3090a5e..e6762e15b 100644
--- a/lib/dedupe.js
+++ b/lib/dedupe.js
@@ -12,10 +12,6 @@ var fs = require("fs")
var asyncMap = require("slide").asyncMap
var path = require("path")
var readJson = require("read-package-json")
-var archy = require("archy")
-var util = require("util")
-var RegClient = require("npm-registry-client")
-var npmconf = require("npmconf")
var semver = require("semver")
var rm = require("./utils/gently-rm.js")
var log = require("npmlog")
@@ -94,7 +90,6 @@ function dedupe_ (dir, filter, unavoidable, dryrun, silent, cb) {
})]
})]
}).map(function (item) {
- var name = item[0]
var set = item[1]
var ranges = set.map(function (i) {
@@ -138,7 +133,6 @@ function dedupe_ (dir, filter, unavoidable, dryrun, silent, cb) {
b.pop()
// find the longest chain that both A and B share.
// then push the name back on it, and join by /node_modules/
- var res = []
for (var i = 0, al = a.length, bl = b.length; i < al && i < bl && a[i] === b[i]; i++);
return a.slice(0, i).concat(name).join(path.sep + "node_modules" + path.sep)
}) : undefined
@@ -205,9 +199,9 @@ function installAndRetest (set, filter, dir, unavoidable, silent, cb) {
// hrm?
return cb(new Error("danger zone\n" + name + " " +
- + regMatch + " " + locMatch))
+ regMatch + " " + locMatch))
- }, function (er, installed) {
+ }, function (er) {
if (er) return cb(er)
asyncMap(remove, rm, function (er) {
if (er) return cb(er)