remove unnended event listeners
This commit is contained in:
parent
86e1b115cc
commit
a48a05cd27
|
@ -3,7 +3,6 @@ let async = require('async');
|
|||
const cloneDeep = require('clone-deep');
|
||||
|
||||
let utils = require('../utils/utils.js');
|
||||
const constants = require('../constants');
|
||||
|
||||
// TODO: create a contract object
|
||||
|
||||
|
@ -21,13 +20,6 @@ class ContractsManager {
|
|||
this.events = options.events;
|
||||
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) => {
|
||||
cb(self.compileError, self.listContracts());
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue