From fc2c6a41ee25220a4f35926ccf798389f3bf5e55 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 6 Feb 2017 21:08:11 -0500 Subject: [PATCH] cleanup --- lib/compiler.js | 1 - lib/pipeline.js | 2 -- lib/plugin.js | 4 +--- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/compiler.js b/lib/compiler.js index 156fbbd4d..c89fbbe50 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -45,7 +45,6 @@ Compiler.prototype.compile_contracts = function(contractFiles) { Compiler.prototype.compile_solidity = function(contractFiles) { var input = {}; - // TODO: need to match only the .sol files for (var i = 0; i < contractFiles.length; i++){ // TODO: this depends on the config var filename = contractFiles[i].filename.replace('app/contracts/',''); diff --git a/lib/pipeline.js b/lib/pipeline.js index a290d1618..517208ae4 100644 --- a/lib/pipeline.js +++ b/lib/pipeline.js @@ -22,7 +22,6 @@ Pipeline.prototype.build = function(abi) { if (file.filename === 'embark.js') { return {content: file.content + "\n" + abi, filename: file.filename, path: file.path, modified: true}; } else if (['web3.js', 'ipfs.js', 'ipfs-api.js', 'orbit.js'].indexOf(file.filename) >= 0) { - //return file.content; file.modified = true; return file; } else { @@ -42,7 +41,6 @@ Pipeline.prototype.build = function(abi) { }); } - //return file.content; return file; } }); diff --git a/lib/plugin.js b/lib/plugin.js index 79c3a24b3..c0e1147fe 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -144,10 +144,8 @@ Plugin.prototype.runFilePipeline = function() { }; Plugin.prototype.runPipeline = function(args) { - // TODO: should iterate the pipeliens + // TODO: should iterate the pipelines var pipeline = this.pipeline[0]; - //var shouldRunPipeline = pipeline.matcthingFiles.some(match => { - //}); var shouldRunPipeline = grunt.file.isMatch(pipeline.matcthingFiles, args.targetFile); if (shouldRunPipeline) { return pipeline.cb.call(this, args);