Skip to content

Commit fc2c6a4

Browse files
committed
cleanup
1 parent 3dcd822 commit fc2c6a4

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

lib/compiler.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Compiler.prototype.compile_contracts = function(contractFiles) {
4545
Compiler.prototype.compile_solidity = function(contractFiles) {
4646
var input = {};
4747

48-
// TODO: need to match only the .sol files
4948
for (var i = 0; i < contractFiles.length; i++){
5049
// TODO: this depends on the config
5150
var filename = contractFiles[i].filename.replace('app/contracts/','');

lib/pipeline.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Pipeline.prototype.build = function(abi) {
2222
if (file.filename === 'embark.js') {
2323
return {content: file.content + "\n" + abi, filename: file.filename, path: file.path, modified: true};
2424
} else if (['web3.js', 'ipfs.js', 'ipfs-api.js', 'orbit.js'].indexOf(file.filename) >= 0) {
25-
//return file.content;
2625
file.modified = true;
2726
return file;
2827
} else {
@@ -42,7 +41,6 @@ Pipeline.prototype.build = function(abi) {
4241
});
4342
}
4443

45-
//return file.content;
4644
return file;
4745
}
4846
});

lib/plugin.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ Plugin.prototype.runFilePipeline = function() {
144144
};
145145

146146
Plugin.prototype.runPipeline = function(args) {
147-
// TODO: should iterate the pipeliens
147+
// TODO: should iterate the pipelines
148148
var pipeline = this.pipeline[0];
149-
//var shouldRunPipeline = pipeline.matcthingFiles.some(match => {
150-
//});
151149
var shouldRunPipeline = grunt.file.isMatch(pipeline.matcthingFiles, args.targetFile);
152150
if (shouldRunPipeline) {
153151
return pipeline.cb.call(this, args);

0 commit comments

Comments
 (0)