Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove uncalled function

  • Loading branch information...
commit 8537bce078db642a62c73bd595444167730029b3 1 parent 7a8dbda
@isaacs isaacs authored
Showing with 0 additions and 24 deletions.
  1. +0 −24 lib/utils/load-package-defaults.js
View
24 lib/utils/load-package-defaults.js
@@ -27,30 +27,6 @@ function loadPackageDefaults (pkg, pkgDir, cb) {
, function (er) { cb(er, pkg) } )
}
-function addFile (list, f) {
- if (arguments.length === 1) return function (f) {
- addFile(list, f)
- }
- f = f.replace(/^\.\/|^\.$/, "")
- for (var i = 0, l = list.length; i < l; i ++) {
- var e = list[i]
- e = e.replace(/^\.\/|^\.$/, "")
- // obviously.
- if (e === f) return
- // "" means "include everything"
- if (!e) return
- // "foo/" is implied by "foo"
- if (e + "/" === f) return
- // "foo/bar" implies "foo" and "foo/"
- if (e.indexOf(f) === 0
- && (e.charAt(f.length + 1) === "/" || f.slice(-1) === "/")) {
- return
- }
- }
- // not found, so add it.
- list.push(f)
-}
-
function objectForEach (obj, fn) {
Object.keys(obj).forEach(function (k) {
fn(obj[k])
Please sign in to comment.
Something went wrong with that request. Please try again.