From c2c41549c17ae1ec35decd1e060dec81deecddb1 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 11 Mar 2017 10:38:05 -0500 Subject: [PATCH] cleanup; remove unneded requires --- lib/contracts/deploy_manager.js | 1 - lib/core/services_monitor.js | 6 ------ lib/core/test.js | 8 -------- lib/index.js | 1 - 4 files changed, 16 deletions(-) diff --git a/lib/contracts/deploy_manager.js b/lib/contracts/deploy_manager.js index 04ce315f..ebbe5d08 100644 --- a/lib/contracts/deploy_manager.js +++ b/lib/contracts/deploy_manager.js @@ -1,5 +1,4 @@ var async = require('async'); -var Web3 = require('web3'); var Deploy = require('./deploy.js'); var ContractsManager = require('./contracts.js'); diff --git a/lib/core/services_monitor.js b/lib/core/services_monitor.js index f0f61b76..402eb1e7 100644 --- a/lib/core/services_monitor.js +++ b/lib/core/services_monitor.js @@ -1,7 +1,4 @@ -var Web3 = require('web3'); var async = require('async'); -var http = require('http'); -var utils = require('./utils.js'); // TODO: repeated, add this to an async extensions file function asyncEachObject(object, iterator, callback) { @@ -35,9 +32,6 @@ ServicesMonitor.prototype.startMonitor = function() { async.eachObject(this.checkList, function(checkName, check, callback) { self.events.on('check:' + checkName, function(obj) { - //self.logger.info('checked ' + checkName); - //self.logger.info(JSON.stringify(obj)); - //self.logger.info(JSON.stringify(self.checkState)); self.checkState[checkName] = obj.name[obj.status]; self.events.emit("servicesState", self.checkState); }); diff --git a/lib/core/test.js b/lib/core/test.js index ac1b5e37..fe3b0406 100644 --- a/lib/core/test.js +++ b/lib/core/test.js @@ -1,15 +1,7 @@ var async = require('async'); var Web3 = require('web3'); -var Embark = require('../index.js'); - var Engine = require('./engine.js'); - -var ABIGenerator = require('../contracts/abi.js'); -var ContractsManager = require('../contracts/contracts.js'); -var Deploy = require('../contracts/deploy.js'); - -var Config = require('./config.js'); var RunCode = require('./runCode.js'); var TestLogger = require('./test_logger.js'); diff --git a/lib/index.js b/lib/index.js index 91b671af..6a71a03f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -2,7 +2,6 @@ var async = require('async'); //require("./core/debug_util.js")(__filename, async); -var Web3 = require('web3'); var colors = require('colors'); var Engine = require('./core/engine.js');