From 55275136b05f3bb4aaf2e11606029c9fde8007e9 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 18 Feb 2017 09:39:13 -0500 Subject: [PATCH] clean up; remove unneded requires --- lib/abi.js | 6 ++++-- lib/deploy.js | 1 - lib/index.js | 5 ----- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/abi.js b/lib/abi.js index 91c08734..58014409 100644 --- a/lib/abi.js +++ b/lib/abi.js @@ -11,9 +11,10 @@ var ABIGenerator = function(options) { ABIGenerator.prototype.generateProvider = function() { var self = this; var result = ""; + var providerPlugins; if (this.plugins) { - var providerPlugins = this.plugins.getPluginsFor('clientWeb3Provider'); + providerPlugins = this.plugins.getPluginsFor('clientWeb3Provider'); } if (this.plugins && providerPlugins.length > 0) { @@ -35,9 +36,10 @@ ABIGenerator.prototype.generateProvider = function() { ABIGenerator.prototype.generateContracts = function(useEmbarkJS) { var self = this; var result = "\n"; + var contractsPlugins; if (this.plugins) { - var contractsPlugins = this.plugins.getPluginsFor('contractGeneration'); + contractsPlugins = this.plugins.getPluginsFor('contractGeneration'); } if (this.plugins && contractsPlugins.length > 0) { diff --git a/lib/deploy.js b/lib/deploy.js index a8b86b61..089d1c41 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -1,5 +1,4 @@ var async = require('async'); -var Compiler = require('./compiler.js'); var DeployTracker = require('./deploy_tracker.js'); var ABIGenerator = require('./abi.js'); var web3; diff --git a/lib/index.js b/lib/index.js index 86229ca7..a07364b4 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,12 +1,7 @@ /*jshint esversion: 6 */ var async = require('async'); var Web3 = require('web3'); -var fs = require('fs'); -var grunt = require('grunt'); -var mkdirp = require('mkdirp'); var colors = require('colors'); -var chokidar = require('chokidar'); -var path = require('path'); var Cmd = require('./cmd.js'); var Deploy = require('./deploy.js');