clean up; remove unneded requires

This commit is contained in:
Iuri Matias 2017-02-18 09:39:13 -05:00
parent 68d4f5e2fa
commit 55275136b0
3 changed files with 4 additions and 8 deletions

View File

@ -11,9 +11,10 @@ var ABIGenerator = function(options) {
ABIGenerator.prototype.generateProvider = function() { ABIGenerator.prototype.generateProvider = function() {
var self = this; var self = this;
var result = ""; var result = "";
var providerPlugins;
if (this.plugins) { if (this.plugins) {
var providerPlugins = this.plugins.getPluginsFor('clientWeb3Provider'); providerPlugins = this.plugins.getPluginsFor('clientWeb3Provider');
} }
if (this.plugins && providerPlugins.length > 0) { if (this.plugins && providerPlugins.length > 0) {
@ -35,9 +36,10 @@ ABIGenerator.prototype.generateProvider = function() {
ABIGenerator.prototype.generateContracts = function(useEmbarkJS) { ABIGenerator.prototype.generateContracts = function(useEmbarkJS) {
var self = this; var self = this;
var result = "\n"; var result = "\n";
var contractsPlugins;
if (this.plugins) { if (this.plugins) {
var contractsPlugins = this.plugins.getPluginsFor('contractGeneration'); contractsPlugins = this.plugins.getPluginsFor('contractGeneration');
} }
if (this.plugins && contractsPlugins.length > 0) { if (this.plugins && contractsPlugins.length > 0) {

View File

@ -1,5 +1,4 @@
var async = require('async'); var async = require('async');
var Compiler = require('./compiler.js');
var DeployTracker = require('./deploy_tracker.js'); var DeployTracker = require('./deploy_tracker.js');
var ABIGenerator = require('./abi.js'); var ABIGenerator = require('./abi.js');
var web3; var web3;

View File

@ -1,12 +1,7 @@
/*jshint esversion: 6 */ /*jshint esversion: 6 */
var async = require('async'); var async = require('async');
var Web3 = require('web3'); var Web3 = require('web3');
var fs = require('fs');
var grunt = require('grunt');
var mkdirp = require('mkdirp');
var colors = require('colors'); var colors = require('colors');
var chokidar = require('chokidar');
var path = require('path');
var Cmd = require('./cmd.js'); var Cmd = require('./cmd.js');
var Deploy = require('./deploy.js'); var Deploy = require('./deploy.js');