feat: remove deprecated utils.walk

v1.18.x
Barış Soner Uşaklı 5 years ago
parent b714ed22e7
commit 609e37a67b

@ -5,12 +5,6 @@
var winston = require('winston');
module.exports = factory(require('xregexp'), winston);
module.exports.walk = function (dir, done) {
// DEPRECATED
var file = require('../../src/file');
winston.warn('[deprecated] `utils.walk` is deprecated. Use `file.walk` instead.');
file.walk(dir, done);
};
process.profile = function (operation, start) {
console.log('%s took %d milliseconds', operation, process.elapsedTimeSince(start));

@ -399,14 +399,6 @@ describe('Utility Methods', function () {
done();
});
it('should walk directory', function (done) {
utils.walk(__dirname, function (err, data) {
assert.ifError(err);
assert(Array.isArray(data));
done();
});
});
it('should profile function', function (done) {
var st = process.hrtime();
setTimeout(function () {

Loading…
Cancel
Save