mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Remove logging of traversal times
This commit is contained in:
@@ -55,18 +55,13 @@ class Project
|
||||
|
||||
filePaths = []
|
||||
|
||||
count = 0
|
||||
start = new Date().getTime()
|
||||
onFile = (path) =>
|
||||
count++
|
||||
filePaths.push(path) unless @ignoreFile(path)
|
||||
|
||||
onDirectory = (path) =>
|
||||
count++
|
||||
return not @ignoreDirectory(path)
|
||||
|
||||
fs.traverseTree @getPath(), onFile, onDirectory
|
||||
console.log "#{count} paths in #{new Date().getTime()-start}ms"
|
||||
deferred.resolve filePaths
|
||||
deferred
|
||||
|
||||
|
||||
Reference in New Issue
Block a user