remove unnended event listeners

This commit is contained in:
Iuri Matias 2018-06-14 11:03:06 -04:00
parent 86e1b115cc
commit a48a05cd27
1 changed files with 0 additions and 8 deletions

View File

@ -3,7 +3,6 @@ let async = require('async');
const cloneDeep = require('clone-deep'); const cloneDeep = require('clone-deep');
let utils = require('../utils/utils.js'); let utils = require('../utils/utils.js');
const constants = require('../constants');
// TODO: create a contract object // TODO: create a contract object
@ -21,13 +20,6 @@ class ContractsManager {
this.events = options.events; this.events = options.events;
this.compileError = false; this.compileError = false;
self.events.on(constants.events.contractFilesChanged, (newContractFiles) => {
self.contractFiles = newContractFiles;
});
self.events.on(constants.events.contractConfigChanged, (newContracts) => {
self.contractsConfig = newContracts;
});
self.events.setCommandHandler('contracts:list', (cb) => { self.events.setCommandHandler('contracts:list', (cb) => {
cb(self.compileError, self.listContracts()); cb(self.compileError, self.listContracts());
}); });