Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
fix: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc committed Feb 19, 2018
1 parent ee56df0 commit da8a1a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/removal.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ module.exports = function removeFunc(moduleExport, ast) {
// TODO(sven): test if we actually want to delete a func
const funcName = moduleExport.descr.id.value;

console.log(`Remove unused "${exportName}"`);
// console.log(`Remove unused "${exportName}"`);

traverse(ast, {

Func(path) {

if (path.node.name.value === funcName) {
replaceWithEmptyFunc(path.node);
console.log('\t> remove func');
// console.log('\t> remove func');
}
},

Expand All @@ -34,7 +34,7 @@ module.exports = function removeFunc(moduleExport, ast) {
// FIXME(sven): here's a hack to hide the node, since this type is not
// printable
path.node.type = 'deleted';
console.log('\t> remove export');
// console.log('\t> remove export');
}
},
});
Expand Down

0 comments on commit da8a1a7

Please sign in to comment.