removed unused function
This commit is contained in:
parent
a834a070af
commit
fa29c9140c
|
@ -53,17 +53,6 @@
|
|||
emitter.emit('end');
|
||||
}
|
||||
|
||||
function getDirectory (enqueue) {
|
||||
fs.readdir(curpath, function(err, files) {
|
||||
if (!files) return;
|
||||
//if (err) throw Error(err);
|
||||
files.sort(sort);
|
||||
emitter.emit('nodes', curpath, files);
|
||||
files.forEach(fullPath);
|
||||
enqueue(files);
|
||||
});
|
||||
}
|
||||
|
||||
function fullPath(v,i,o) {
|
||||
o[i]= [curpath, '/', v].join('');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue